/* Larrly auth — login & register */

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

body {
    font-family: Inter, -apple-system, sans-serif;
    font-size: 14px;
    background: #f8fafc;
    color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

.auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left — licht met glow + zwevende props */
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    color: #0a1628;
}

.auth-left-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 45% at 15% 25%, rgba(125, 211, 252, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(253, 186, 140, 0.32) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 85%, rgba(167, 243, 208, 0.28) 0%, transparent 70%);
}

.auth-left-inner {
    position: relative;
    z-index: 2;
    max-width: 400px;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.06);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 36px;
    color: #0a1628;
}

.auth-brand-mark {
    width: 28px;
    height: 32px;
    position: relative;
    display: inline-block;
}
.auth-brand-mark::before,
.auth-brand-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    width: 14px;
    height: 16px;
    border-radius: 4px;
    background: #25b8ad;
    transform: rotate(38deg);
}
.auth-brand-mark::before { top: 0; }
.auth-brand-mark::after { bottom: 0; opacity: 0.55; }

.auth-headline {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.12;
    margin-bottom: 16px;
    color: #0a1628;
}
.auth-headline em {
    font-style: normal;
    color: #1a9e94;
}

.auth-sub {
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 36px;
}

.auth-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-perk {
    padding: 12px 16px 12px 14px;
    border-left: 3px solid #25b8ad;
    background: rgba(37, 184, 173, 0.07);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

/* Right — form */
.auth-right {
    flex: 0 0 460px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-left: 1px solid #eef0f2;
}

.auth-form-wrap { width: 100%; max-width: 360px; }

.auth-form-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 40px;
}

.auth-form-logo-dot {
    width: 22px;
    height: 26px;
    position: relative;
}
.auth-form-logo-dot::before,
.auth-form-logo-dot::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 12px;
    height: 14px;
    border-radius: 3px;
    background: #25b8ad;
    transform: rotate(38deg);
}
.auth-form-logo-dot::before { top: 0; }
.auth-form-logo-dot::after { bottom: 0; opacity: 0.55; }

.auth-form-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #0a0a0a;
}
.auth-form-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #333;
}
input[type=text],
input[type=email],
input[type=password] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: #0a0a0a;
}
input:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.btn-auth {
    width: 100%;
    padding: 13px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: -0.1px;
}
.btn-auth:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #888;
}
.auth-switch a {
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-code-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: #0a0a0a;
}
.auth-code-input:focus {
    border-color: #25b8ad;
    box-shadow: 0 0 0 3px rgba(37, 184, 173, 0.15);
}

.auth-resend {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.auth-resend a {
    color: #1a9e94;
    font-weight: 600;
    text-decoration: none;
}
.auth-resend a:hover { text-decoration: underline; }

.alert {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 18px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.alert.success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.auth-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0a0a0a;
    padding: 0;
}
.auth-theme-toggle .icon-moon { display: none; }

[data-theme="dark"] body {
    background: #0b0f14;
    color: #e2e8f0;
}
[data-theme="dark"] .auth-left {
    background: #0b0f14;
    color: #f1f5f9;
}
[data-theme="dark"] .auth-left-inner {
    background: rgba(21, 27, 36, 0.96);
    border-color: #1e293b;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .auth-brand,
[data-theme="dark"] .auth-headline,
[data-theme="dark"] .auth-headline em { color: #f1f5f9; }
[data-theme="dark"] .auth-sub,
[data-theme="dark"] .auth-perk { color: #cbd5e1; background: rgba(37, 184, 173, 0.1); }
[data-theme="dark"] .auth-right {
    background: #0f141c;
    border-left-color: #1e293b;
}
[data-theme="dark"] .auth-form-wrap { color: #e2e8f0; }
[data-theme="dark"] .auth-form-logo { color: #f1f5f9; }
[data-theme="dark"] .auth-form-title { color: #f1f5f9; }
[data-theme="dark"] .auth-form-sub { color: #94a3b8; }
[data-theme="dark"] label { color: #cbd5e1; }
[data-theme="dark"] input[type=email],
[data-theme="dark"] input[type=password],
[data-theme="dark"] input[type=text] {
    background: #151b24;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] input:focus {
    border-color: #4fd1c5;
    box-shadow: 0 0 0 3px rgba(37, 184, 173, 0.15);
}
[data-theme="dark"] .btn-auth { background: #25b8ad; }
[data-theme="dark"] .btn-auth:hover { background: #1a9e94; }
[data-theme="dark"] .auth-switch { color: #64748b; }
[data-theme="dark"] .auth-switch a { color: #4fd1c5; }
[data-theme="dark"] .auth-code-input {
    background: #151b24;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .auth-resend { color: #94a3b8; }
[data-theme="dark"] .auth-resend a { color: #4fd1c5; }
[data-theme="dark"] .auth-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .auth-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .auth-theme-toggle .icon-moon { display: block; }

@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { flex: 1; border-left: none; }
}
