/* Base styles moved from inline <style> blocks */
body.auth-page { /* Added a class to body for auth pages to avoid conflicts */
    font-family: var(--font-body, sans-serif);
    margin: 0;
    padding: 0; /* Removed body padding, rely on container margins/padding */
    /* Add padding-top to account for fixed navbar height if needed, 
       but auth-container's margin-top should handle this.
       Example: padding-top: 70px; /* Approx height of nav */
    background-color: var(--primary-bg, #f4f4f4); /* Fallback if var not defined */
    color: var(--text-primary, #333);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Ensure footer is at bottom if content is short */
}

.auth-container {
    max-width: 450px; /* Slightly wider for a more modern feel */
    width: 100%;
    margin: 80px auto 20px auto; /* Increased top margin significantly, kept bottom margin */
    padding: 35px 45px; /* Slightly increased padding */
    background-color: var(--card-bg, #fff);
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08), 0 2px 5px rgba(0,0,0,0.05); /* Even softer, subtler shadow */
}

.auth-container h2 {
    text-align: center;
    color: var(--text-headlines, #333);
    font-family: var(--font-headings, sans-serif);
    font-size: 28px; /* Slightly larger */
    margin-bottom: 30px; /* More space below heading */
}

.form-group {
    margin-bottom: 20px; /* Increased spacing */
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* More space after label */
    font-weight: 500; /* Medium weight */
    color: var(--text-secondary, #555);
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px; /* Increased padding for a more spacious feel */
    border: 1px solid var(--border-color-subtle, #ddd);
    border-radius: 6px; /* Consistent with nav search */
    box-sizing: border-box;
    background-color: var(--primary-bg, #f9f9f9); /* Match page bg or slightly lighter than card */
    color: var(--text-primary, #333);
    font-family: var(--font-body, sans-serif);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; /* Added background-color transition */
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    border-color: var(--accent-blue, #007bff);
    background-color: var(--card-bg, #fff); /* Slightly change bg on focus for better depth */
    box-shadow: 0 0 0 2px rgba(var(--accent-blue-rgb, 0,123,255), 0.2); /* Softer, thinner focus shadow */
    outline: none;
}

.btn {
    display: inline-block;
    padding: 14px 22px; /* Slightly increased padding */
    border: none;
    border-radius: 6px;
    color: #fff;
    background-color: var(--accent-blue, #007bff);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-family: var(--font-headings, sans-serif);
    font-weight: 600; /* Slightly bolder for primary action */
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: var(--accent-blue-hover, #0056b3);
    transform: translateY(-1px); /* Subtle lift */
}

.btn:active {
    transform: translateY(0px); /* Click effect */
}

.btn-google {
    background-color: #fff; /* White background for Google button */
    color: #444; /* Darker text for contrast */
    border: 1px solid var(--border-color-subtle, #ddd);
    margin-top: 15px; /* Spacing from email/pass login */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google img, 
.btn-google svg { /* If using an icon or SVG */
    margin-right: 12px; /* More space for icon */
    height: 20px; /* Keep height consistent */
    width: 20px; /* Explicit width for SVG */
}

.btn-google:hover {
    background-color: #f7f7f7; /* Slightly different hover for white button */
    border-color: var(--border-color-darker, #bbb); /* Slightly darker border on hover */
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1); /* Softer red */
    color: #dc3545; /* Bootstrap danger red */
    border-color: rgba(220, 53, 69, 0.2);
}

.alert-success { /* Not currently used in provided HTML but good to have */
    background-color: rgba(40, 167, 69, 0.1); /* Softer green */
    color: #28a745; /* Bootstrap success green */
    border-color: rgba(40, 167, 69, 0.2);
}

/* Close button for alert messages */
.alert-close {
    float: right;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
}

.alert-close:hover {
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mt-2 { /* Utility class from original HTML, adjust if needed */
    margin-top: 20px; /* Standardized margin */
}

.auth-links { /* For "Don't have an account?" / "Already have an account?" */
    text-align: center;
    margin-top: 25px;
    font-family: var(--font-body, sans-serif);
    font-size: 14px;
    color: var(--text-secondary, #555);
}

.auth-links a {
    color: var(--accent-blue, #007bff);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    color: var(--accent-blue-hover, #0056b3);
}

/* Add a root definition for --accent-blue-rgb if not already defined elsewhere */
/* This is needed for the box-shadow on input focus */
:root {
    /* Example: If --accent-blue is #2078F5 */
    --accent-blue-rgb: 32, 120, 245;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        margin-top: 60px; /* Account for fixed nav */
        padding: 25px 20px;
    }
    .auth-container h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 10px;
    }
    .auth-container {
        padding: 20px 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .auth-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .btn, .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="text"] {
        font-size: 15px;
    }
    .form-group {
        margin-bottom: 15px;
    }
}
