:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --bg: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --error: #ef4444;
    --success: #22c55e;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: fadeIn 0.8s ease-out;
}

h2 { 
    text-align: center; 
    margin-bottom: 30px; 
    font-weight: 600; 
    letter-spacing: -1px; 
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 15px; 
}

.full-width { grid-column: span 2; }

label { 
    font-size: 0.85rem; 
    margin-bottom: 6px; 
    color: #94a3b8; 
}

input, select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Style for the select options to ensure they are readable */
select option {
    background: #1e1b4b;
    color: white;
}

.validation-msg { 
    font-size: 0.75rem; 
    margin-top: 5px; 
    min-height: 1rem; 
}

.error-text { color: var(--error); }
.success-text { color: var(--success); }

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover { transform: translateY(-2px); opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.spinner {
    display: none;
    width: 20px; 
    height: 20px; 
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; 
    border-top-color: #fff; 
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}