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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #08091a;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}


.auth-wrapper { width: 100%; max-width: 420px; }

.auth-logo { text-align: center; margin-bottom: 2rem; }

.auth-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.auth-logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-logo-name { font-size: 1.25rem; font-weight: 700; color: #FFFFFF; }

.auth-card {
    background: linear-gradient(145deg, #0f1030, #0a0a1f);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08);
}

.auth-card-title { font-size: 1.375rem; font-weight: 700; color: #ffffff; margin-bottom: 0.375rem; }
.auth-card-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.45); margin-bottom: 1.75rem; }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #ffffff; margin-bottom: 0.375rem; }

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #7c3aed;
    background: linear-gradient(145deg, #0f1030, #0a0a1f);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input::placeholder { color: rgba(255,255,255,0.25); }

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.alert-error { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.alert ul { margin: 0.25rem 0 0 1rem; }

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-primary:hover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); transform: translateY(-1px); }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.auth-footer a { color: #a78bfa; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-divider { border: none; border-top: 1px solid #E2E8F0; margin: 1.5rem 0; }

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
