/* Modern & Professional Authentication Styles - Themed around #fdd */

:root {
    --primary-color: #800020; /* Deep Rose for high contrast/buttons */
    --primary-hover: #600018;
    --secondary-color: #333333; /* Charcoal for text and secondary elements */
    --secondary-hover: #4d4d4d;
    --bg-color: #fdd; /* Base theme color */
    --card-bg: #ffffff;
    --text-main: #333333; /* Charcoal for readability */
    --text-muted: #555555;
    --error-color: #800020; /* Using deep rose for error text to stay in theme, or a soft red */
    --error-bg: #fecaca; /* Soft red background for errors */
    --input-border: #e5c1c1; /* Subtle pinkish border */
    --input-focus: #800020;
    --shadow: 0 10px 25px -5px rgba(128, 0, 32, 0.1), 0 8px 10px -6px rgba(128, 0, 32, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container for centering */
.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Auth Card */
.auth-card {
    background-color: var(--card-bg);
    width: 100%;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    /* Subtle #fdd tint/border as requested */
    border: 2px solid rgba(255, 221, 221, 0.5);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: #fff;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.1);
}

/* Buttons */
button, .btn-primary, .btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    margin-top: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #fff0f0; /* Very light pink hover */
}

/* Error Messages */
.error-message {
    background-color: var(--error-bg);
    color: var(--error-color);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Links */
.clickable-link {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.clickable-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Logged In View */
.logged-in-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Styling the "Go to model selector" link as an elegant button/element */
.logged-in-view .clickable-link {
    display: inline-block;
    width: auto;
    padding: 10px 24px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.logged-in-view .clickable-link:hover {
    background-color: var(--secondary-hover);
    text-decoration: none;
}

/* Responsiveness */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    
    .container {
        padding: 15px;
    }
}
