/* [File: public/css/auth.css] */

/* 1. Auth Page Container ko Center karein */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical center */
    align-items: center;     /* Horizontal center */
    min-height: calc(100vh - 160px); /* Adjust 160px based on actual combined header/footer height */
    padding: 40px 20px;      /* Upar/neeche aur side mein padding */
    box-sizing: border-box;
}

/* 2. Form Content Box ko Style karein */
.auth-form-content {
    background-color: var(--bg-content); /* Theme variable use karein */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 40px;
    width: 100%;
    max-width: 450px; /* Max width set karein */
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Optional: Thoda shadow */
}
/* Dark mode ke liye specific background */
body.dark-mode .auth-form-content {
     background-color: #1a2a44; /* Darker content background */
     border-color: #333;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 3. Form Elements ko Style karein */
.auth-form-content h2 {
    text-align: left; /* Heading left align */
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8rem;
}
.auth-form-content p {
    text-align: left; /* Paragraph left align */
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.auth-form-content .form-group {
    margin-bottom: 20px; /* Fields ke beech space */
}

.auth-form-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-secondary); /* Match main style */
    font-size: 0.9rem;
}
.auth-form-content label i {
    color: var(--air-force-blue); /* Match main style */
}
body.dark-mode .auth-form-content label i {
    color: var(--mindaro-accent); /* Match main style */
}

.auth-form-content input[type="text"],
.auth-form-content input[type="email"],
.auth-form-content input[type="password"] {
    width: 100%; /* Poori width */
    padding: 12px;
    border: 1px solid var(--border-color); /* Match main style */
    background-color: var(--bg-main); /* Match main style */
    color: var(--text-primary); /* Match main style */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}
.auth-form-content input:focus {
     border-color: var(--air-force-blue); /* Match main style */
     outline: none;
     box-shadow: 0 0 0 2px rgba(77, 124, 138, 0.2); /* Optional focus glow */
}
body.dark-mode .auth-form-content input:focus {
    border-color: var(--mindaro-accent); /* Match main style */
    box-shadow: 0 0 0 2px rgba(203, 223, 144, 0.2);
}

/* 4. Error Message aur Switch Link */
.auth-error {
    color: #e74c3c; /* Red */
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em; /* Taaki space rahe */
    margin-bottom: 15px;
}
.auth-switch {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 25px; /* Button ke neeche space */
    margin-bottom: 0;
}
.auth-switch a {
    color: var(--yale-blue); /* Match main style */
    font-weight: bold;
    text-decoration: none;
}
body.dark-mode .auth-switch a {
    color: var(--mindaro-accent); /* Match main style */
}

/* 5. Button Styling */
/* Email/Password Button */
.auth-form-content .generate-button {
    width: 100%; /* Full width button */
    padding: 12px;
    font-size: 1.1rem;
    /* Baaki styles style.css se aane chahiye (background, color etc) */
}

/* Google Sign-in Button Container */
.google-signin-container {
    margin-top: 25px;
    margin-bottom: 20px;
    text-align: center;
}

/* OR Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 20px 0 !important;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.or-divider span {
    padding: 0 10px;
}

/* Google Button */
.google-signin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: auto;
}
.google-signin-button:hover {
    background-color: #f8f8f8;
    border-color: #aaa;
}
.google-signin-button i.fa-google {
    color: #DB4437;
    font-size: 1.2rem;
}



.forgot-password-link {
    text-align: right; /* Link ko right side mein dhakele */
    margin-top: -10px; /* Password field aur error message ke beech ki jagah ko thoda kam karein */
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.forgot-password-link a {
    color: var(--air-force-blue); /* Theme color use karein */
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-password-link a:hover {
    text-decoration: underline;
    color: var(--mindaro-accent); /* Hover color for visibility */
}

/* Custom styles for the Reset Message area */
.setting-message.success { color: #2ecc71; } /* Green for success */
.setting-message.text-error { color: #e74c3c; } /* Red for error */

/* Adjust the close button color if needed */
#close-reset-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Reuse styles from .close-modal-btn defined elsewhere */
}

/* ---- WhatsApp Verify Page ---- */
.verify-phone-page {
    min-height: calc(100vh - 140px);
    padding: 32px 16px 48px;
}

.verify-phone-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 28px;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(17, 34, 64, 0.96), rgba(10, 25, 47, 0.98));
    border: 1px solid rgba(37, 211, 102, 0.22);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(13, 110, 139, 0.15);
    position: relative;
    overflow: hidden;
}
body:not(.dark-mode) .verify-phone-card {
    background: linear-gradient(165deg, #ffffff, #f8fafc);
    border-color: rgba(37, 211, 102, 0.28);
    box-shadow: 0 20px 40px -18px rgba(27, 64, 121, 0.18);
}
.verify-phone-card::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.18), transparent 70%);
    pointer-events: none;
}

.verify-phone-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.55);
    margin-bottom: 18px;
}

.verify-phone-header h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    color: var(--heading-color, #f8fafc);
    line-height: 1.25;
}
body:not(.dark-mode) .verify-phone-header h2 {
    color: var(--yale-blue, #1b4079);
}
.verify-phone-header p {
    margin: 0 0 22px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary, #94a3b8);
}

.verify-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.verify-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.25s ease;
}
.verify-step.is-active {
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
}
.verify-step-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.35), rgba(148, 163, 184, 0.2));
}

.verify-phone-form .form-group {
    margin-bottom: 18px;
}
.verify-phone-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, #94a3b8);
}

.verify-phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 139, 0.35);
    background: rgba(10, 25, 47, 0.55);
}
body:not(.dark-mode) .verify-phone-input-wrap {
    background: #fff;
    border-color: rgba(27, 64, 121, 0.18);
}
.verify-phone-prefix {
    padding: 14px 12px 14px 16px;
    font-weight: 700;
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    border-right: 1px solid rgba(13, 110, 139, 0.2);
    white-space: nowrap;
}
.verify-phone-input-wrap input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    background: transparent !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.04em;
}
.verify-phone-input-wrap input:focus {
    box-shadow: none !important;
    outline: none;
}

.verify-otp-section {
    animation: verifyOtpIn 0.35s ease;
}
@keyframes verifyOtpIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.verify-otp-input {
    width: 100%;
    text-align: center;
    font-size: 1.35rem !important;
    letter-spacing: 0.35em !important;
    font-weight: 700;
    padding: 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
    background: rgba(37, 211, 102, 0.06) !important;
}

.verify-phone-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
}

.verify-message {
    min-height: 1.2em;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}
.verify-message.is-success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.verify-message.is-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.verify-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.verify-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
.verify-btn-whatsapp {
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.65);
}
.verify-btn-whatsapp:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.75);
}
.verify-btn-primary {
    margin-top: 10px;
    color: #0a192f;
    background: linear-gradient(135deg, #d2fa5c, #b8e62e);
    box-shadow: 0 8px 20px -8px rgba(210, 250, 92, 0.5);
}
.verify-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.verify-phone-footer {
    margin: 22px 0 0;
    text-align: center;
    font-size: 0.9rem;
}
.verify-phone-footer a {
    color: var(--air-force-blue, #0d6e8b);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.dark-mode .verify-phone-footer a {
    color: var(--mindaro-accent, #d2fa5c);
}
.verify-phone-footer a:hover {
    text-decoration: underline;
}