/* assets/css/auth.css */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px; /* Updated width as per your request */
}

.auth-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.auth-welcome h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-welcome p {
    color: var(--secondary-color);
    font-size: 16px;
}

.auth-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Adjusted margin for button */
}

.auth-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.auth-btn.signin {
    background-color: var(--primary-color);
    color: white;
}

.auth-btn.signup {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.auth-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.auth-form {
    width: 100%;
}

.auth-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* Added for relative positioning of password strength */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.error-message {
    background-color: #ffd2d2;
    color: var(--error-color);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px; /* Consistent margin */
    display: none; /* Hidden by default, shown by JS */
}

.success-message {
    background-color: #d4edda;
    color: var(--success-color);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary-color);
}

/* NEW: For the "Forgot Password?" link */
.auth-links-left {
    text-align: left;
    font-size: 0.9em;
    margin-bottom: -10px; /* Pull the button up */
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Note under email field */
.email-note {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #ff5426;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    background: #ffffbf;
    border-radius: 5px;
}

/* Form Row for compact layout */
.form-row {
    display: flex;
    gap: 16px; /* Space between columns */
    margin-bottom: 20px; /* Add margin to the entire row */
}

.form-row .form-group {
    flex: 1; /* Distribute space evenly */
    margin-bottom: 0; /* Remove individual form-group margin, handled by form-row */
}

/* Password strength indicator styling */
.password-strength {
    font-size: 0.9em;
    margin-top: 5px; /* Space below the password input */
    font-weight: bold;
}

/* --- Modal Styles --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.modal-note {
    font-size: 0.9em;
    color: var(--error-color);
    font-weight: bold;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

.modal-links {
    text-align: center;
    margin-top: 20px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 580px) { /* Matched to new 550px container width */
    .form-row {
        flex-direction: column; /* Stack items vertically */
        gap: 0; /* Remove gap when stacked */
        margin-bottom: 0; /* No margin on the row itself */
    }

    .form-row .form-group {
        margin-bottom: 20px; /* Restore individual margin for stacked items */
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
}

