
/* Fixed modal styles */
.login-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#closeLoginModal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

#otpSection {
  margin-top: 15px;
  display: none;
}

#resendCode {
  margin-top: 10px;
  display: none;
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

        

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #ff4757;
    background: #f1f2f6;
}

.login-modal-content h2 {
    color: #2f3542;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.5rem;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#loginForm label {
    text-align: right;
    color: #2f3542;
    font-weight: 500;
    margin-bottom: -10px;
}

#loginForm input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

#loginForm input:focus {
    outline: none;
    border-color: #6c5ce7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

#loginForm button {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

#loginForm button:hover {
    background: #5649c9;
}

#verifyForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#verifyForm label {
    text-align: right;
    color: #2f3542;
    font-weight: 500;
    margin-bottom: -10px;
}

#verifyForm input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

#verifyForm input:focus {
    outline: none;
    border-color: #6c5ce7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

#verifyForm button {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

#verifyForm button:hover {
    background: #5649c9;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.or-divider span {
    padding: 0 10px;
}

.timer-container {
    margin: 25px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.timer-display {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.timer-message {
    color: #666;
    font-size: 14px;
}

.timer-warning {
    color: #e74c3c;
}

.progress-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    width: 100%;
    transition: width 1s linear;
}

.resend-button {
    width: 100%;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-modal-content {
        padding: 25px 20px;
    }
    
    .login-modal-content h2 {
        font-size: 1.3rem;
    }
    
    #loginForm input, #loginForm button {
        padding: 12px;
    }

    #verifyForm input, #verifyForm button {
        padding: 12px;
    }
}