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

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --surface: #ffffff;
    --surface-alt: #F9FAFB;
    --border: #E5E7EB;
    --text: #111827;
    --text-muted: #6B7280;
    --danger: #DC2626;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
}

body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #F3F4F6 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
}

.auth-container { width: 100%; max-width: 420px; padding: 1rem; }

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
}

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

.auth-logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}

.auth-logo svg { width: 28px; height: 28px; stroke: white; }

.auth-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.auth-header p { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

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

.form-group label {
    display: block; font-size: .875rem; font-weight: 500;
    color: var(--text); margin-bottom: .375rem;
}

.form-control {
    width: 100%; padding: .625rem .875rem;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .9375rem; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }

.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.form-check-input { width: 1rem; height: 1rem; cursor: pointer; }
.form-check-label { font-size: .875rem; color: var(--text-muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .6875rem 1.25rem; border: none; border-radius: 8px;
    font-size: .9375rem; font-weight: 600; cursor: pointer;
    transition: background .15s, transform .1s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(.98); }
.btn-block { width: 100%; }

.alert { padding: .75rem 1rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1rem; }
.alert-danger { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }

.text-danger { color: var(--danger); font-size: .8rem; display: block; margin-top: .25rem; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
