/* --- Auth Page Specific Styles (can be moved to auth.css or appended to style-old.css) --- */
body.auth-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px; /* Add some padding for smaller screens */
}

.auth-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h2 {
    font-size: 28px;
    color: var(--dark-grey);
    margin-bottom: 25px;
    font-weight: 700;
}

.auth-logo {
    font-size: 45px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: block; /* Ensure it takes its own line */
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--medium-grey);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"] { /* Include text for registration */
    width: 100%;
    padding: 12px 15px;
    padding-left: 45px; /* Space for icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark-grey);
    background-color: var(--light-grey); /* Match chat input style */
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%; /* Adjusted from 38px to 50% for vertical centering within input */
    transform: translateY(50%); /* Fine-tune vertical alignment with transform */
    color: var(--medium-grey);
    font-size: 18px;
}

/* Adjust icon position for input with label */
.input-group input + i { /* If icon is after input */
    top: 50%;
    transform: translateY(50%);
}
.input-group label + i { /* If icon is after label, before input */
    top: calc(50% + 8px); /* Adjust based on label height */
    transform: translateY(0%);
}
.input-group:has(label) i { /* General rule for icon when a label exists */
    top: 48px; /* Approximate position below label + adjusted for padding */
    transform: translateY(-50%); /* Adjust to center relative to input */
}


.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #0056b3;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.auth-links {
    margin-top: 30px;
    font-size: 15px;
    color: var(--dark-grey);
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #0056b3;
}

/* Responsive adjustments for auth pages */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 0 10px; /* Some side margin on very small screens */
    }
    .auth-container h2 {
        font-size: 24px;
    }
    .auth-logo {
        font-size: 40px;
    }
    .input-group input {
        padding: 10px 12px;
        padding-left: 40px;
    }
    .input-group i {
        left: 12px;
        font-size: 16px;
    }
    .auth-button {
        padding: 12px;
        font-size: 16px;
    }
}

/* Error/Success message area */
.message-area {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95em;
    display: none; /* Hidden by default */
}

.message-area.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.message-area.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}