@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg: #0f172a; /* Deep Navy/Dark Slate */
    --card-bg: #1e293b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --input-bg: #0f172a;
    --input-border: #334155;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--card-bg);
    width: 90%;
    max-width: 420px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 { font-size: 28px; margin: 0 0 8px 0; text-align: center; font-weight: 700; }
.subtitle { text-align: center; color: var(--text-dim); margin: 0 0 32px 0; font-size: 15px; }

.input-group { margin-bottom: 20px; }

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--text-dim); }

input, select {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }

.dob-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.submit-btn:hover { background: var(--primary-hover); }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-dim); }
.auth-footer span { color: var(--primary); cursor: pointer; font-weight: 600; }
.auth-footer span:hover { text-decoration: underline; }

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake { animation: shake 0.2s ease-in-out 0s 2; }