:root {
    --primary-blue: #1a365d; /* Professional Navy */
    --accent-orange: #f6ad55; /* Action color */
    --text-gray: #4a5568;
    --border-light: #e2e8f0;
}

.auth-container {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    background: #f7fafc;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

h2 { color: var(--primary-blue); margin-bottom: 5px; font-weight: 700; }
#auth-subtitle { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 25px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--primary-blue); }

/* UPDATED: Includes input, select, and textarea */
.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    box-sizing: border-box; /* Crucial for alignment */
    font-family: inherit;   /* Ensures font matches the rest of the form */
    font-size: 1rem;        /* Prevents zoom on mobile and matches input size */
    background-color: white;
}

/* Optional: Add a subtle focus effect for better UX */
.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Specific styling for the textarea to allow resizing */
.input-group textarea {
    resize: vertical; /* Allows user to resize height only */
    min-height: 80px;
}

.main-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.main-btn:hover { background: #2c5282; }

.auth-switch { margin-top: 20px; text-align: center; font-size: 0.9rem; }
.auth-switch a { color: #2b6cb0; text-decoration: none; font-weight: 600; }

.error-box {
    background-color: #fff5f5; /* Light red background */
    border: 1px solid #feb2b2; /* Soft red border */
    color: #c53030;            /* Deep red text */
    padding: 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.error-box a:hover {
    text-decoration: none;
}


.error-msg {
    color: #e53e3e; /* Red color */
    font-size: 0.75rem;
    margin-top: 4px;
    display: none; /* Hidden by default */
}

.input-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5;
}