:root {
    --primary: #5b5fc7;
    --primary-dark: #4a4eb0;
    --accent: #00c9a7;
    --text: #1a1d2e;
    --muted: #6b7280;
    --border: #e8eaef;
    --bg: #f4f5f9;
    --surface: #ffffff;
    --shadow: 0 24px 64px rgba(19, 20, 31, 0.14);
}

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

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-hero {
    background: linear-gradient(160deg, #13141f 0%, #1e1f35 50%, #2a2b4a 100%);
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 95, 199, 0.3), transparent 70%);
    top: -150px;
    right: -100px;
}

.auth-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.2), transparent 70%);
    bottom: -100px;
    left: -80px;
}

.auth-hero-content { position: relative; z-index: 1; max-width: 440px; }

.auth-hero .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(91, 95, 199, 0.4);
}

.auth-hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.auth-hero p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
}

.auth-features { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--accent);
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 32px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.auth-card-header { margin-bottom: 28px; }

.auth-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.auth-card-header p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 7px;
    color: #4b5563;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s;
}

input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1);
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6c70d4);
    color: white;
    box-shadow: 0 4px 14px rgba(91, 95, 199, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 95, 199, 0.45);
}

.full-btn { width: 100%; }

.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 14px;
}

.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { padding: 24px; }
}
