:root {
    --bg-color: #f4eee1;       /* Warm cream background from the logo */
    --primary-teal: #215155;   /* Deep teal from the text/brain illustration */
    --mid-teal: #3a6b70;       /* Lighter slate-teal for borders/focus */
    --text-dark: #2c3e40;      /* Soft dark charcoal for text */
    --text-muted: #5a6e70;     /* Muted gray-teal for subtitles */
    --form-bg: #f7f4eb;        /* Slightly lighter cream for inputs */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 480px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 100%;
    height: auto;
    width: 380px; /* Scales elegantly */
    border-radius: 8px;
}

.form-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(33, 81, 85, 0.15);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(33, 81, 85, 0.05);
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

p.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--form-bg);
    border: 1px solid rgba(33, 81, 85, 0.25);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

input::placeholder, textarea::placeholder {
    color: #8fa0a2;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 81, 85, 0.12);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

button {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary-teal);
    border: none;
    border-radius: 8px;
    color: #f1ebd9; /* Matches back to cream background */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

button:hover {
    background: var(--mid-teal);
}

button:active {
    transform: scale(0.99);
}

/* Status Alerts */
.alert {
    padding: 0.85rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.4;
}
.alert.success {
    background: rgba(21, 128, 61, 0.1);
    border: 1px solid rgba(21, 128, 61, 0.3);
    color: #166534;
}
.alert.error {
    background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #991b1b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}