/* [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 */
}