:root {
    --ink: #151619;
    --paper: #f5f3ef;
    --card: #fffefa;
    --muted: #77746e;
    --line: rgba(21,22,25,.12);
    --danger: #9d332d;
    --success: #31634b;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh; margin: 0; color: var(--ink); background:
        radial-gradient(circle at 80% 5%, rgba(255,255,255,.95), transparent 34%),
        linear-gradient(145deg, #f8f7f4, #ece9e3);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.flow-header {
    width: min(1180px, calc(100% - 40px)); height: 92px; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
}
.flow-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 760; letter-spacing: -.7px; }
.flow-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 7px 18px rgba(0,0,0,.08); }
.flow-header > a:last-child { color: #66635e; font-size: 13px; font-weight: 620; }
.flow-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 90px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, .75fr); gap: 8vw; align-items: center; min-height: calc(100vh - 230px); }
.auth-intro { max-width: 570px; }
.eyebrow { margin: 0 0 21px; color: #79766f; font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(52px, 6vw, 82px); line-height: .94; letter-spacing: -.06em; font-weight: 560; }
h1 span { color: #89857e; }
.auth-intro > p:not(.eyebrow) { max-width: 510px; margin: 27px 0; color: #74716b; font-size: 16px; line-height: 1.65; }
.assurances { display: grid; gap: 12px; margin-top: 36px; }
.assurances span { display: flex; align-items: center; gap: 11px; color: #6d6a65; font-size: 13px; }
.assurances i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e2dfd9; color: #252629; font-size: 11px; font-style: normal; }
.auth-card {
    padding: 38px; border: 1px solid rgba(255,255,255,.85); border-radius: 30px;
    background: rgba(255,254,250,.86); backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(31,28,23,.11);
}
.auth-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 27px; color: #77746e; font-size: 13px; line-height: 1.5; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 24px; border-radius: 13px; background: #efede8; }
.account-switch button { min-height: 40px; border: 0; border-radius: 10px; color: #77736d; background: transparent; font-size: 12px; font-weight: 670; cursor: pointer; }
.account-switch button.active { color: white; background: var(--ink); box-shadow: 0 7px 17px rgba(0,0,0,.14); }
.oauth-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.oauth {
    min-height: 47px; border: 1px solid var(--line); border-radius: 12px; background: white;
    display: flex; align-items: center; justify-content: center; gap: 9px; color: #383838; font-size: 12px; font-weight: 650; cursor: pointer;
}
.oauth:hover { border-color: #aaa69f; }
.oauth-symbol { width: 20px; height: 20px; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.separator { display: flex; align-items: center; gap: 13px; margin: 22px 0; color: #aaa69f; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; }
.field input {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px;
    outline: 0; color: var(--ink); background: rgba(255,255,255,.85); font-size: 13px; transition: .2s ease;
}
.field input:focus { border-color: #77736c; box-shadow: 0 0 0 3px rgba(21,22,25,.06); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 55px; }
.password-toggle { position: absolute; right: 8px; top: 7px; height: 34px; border: 0; background: none; color: #77746e; font-size: 10px; cursor: pointer; }
.form-meta { display: flex; justify-content: space-between; gap: 15px; margin: 17px 0; color: #716e68; font-size: 11px; line-height: 1.45; }
.check { display: flex; align-items: flex-start; gap: 8px; }
.check input { margin-top: 2px; accent-color: var(--ink); }
.form-meta a, .legal-copy a, .auth-footer a { text-decoration: underline; text-underline-offset: 3px; }
.primary-button {
    width: 100%; min-height: 51px; border: 0; border-radius: 13px; color: white; background: var(--ink);
    font-size: 13px; font-weight: 720; cursor: pointer; box-shadow: 0 12px 27px rgba(21,22,25,.18); transition: .2s ease;
}
.primary-button:hover { transform: translateY(-1px); background: #000; }
.legal-copy { margin: 14px 0 0; color: #918d86; font-size: 9px; line-height: 1.55; text-align: center; }
.auth-footer { margin-top: 22px; color: #74716c; font-size: 12px; text-align: center; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: #f6e9e7; font-size: 11px; line-height: 1.5; }
.alert ul { margin: 0; padding-left: 18px; }

.plan-heading { max-width: 760px; margin: 30px auto 55px; text-align: center; }
.plan-heading h1 { font-size: clamp(48px, 6vw, 76px); }
.plan-heading > p:last-child { margin: 24px auto 0; max-width: 560px; color: var(--muted); line-height: 1.6; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-card { position: relative; min-height: 510px; padding: 29px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,254,250,.78); }
.plan-card.recommended { color: white; background: var(--ink); box-shadow: 0 26px 60px rgba(21,22,25,.2); transform: translateY(-12px); }
.plan-badge { position: absolute; right: 18px; top: 18px; padding: 6px 8px; border-radius: 7px; color: var(--ink); background: white; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.03em; }
.plan-card > p { min-height: 57px; margin: 0; color: #85817a; font-size: 12px; line-height: 1.6; }
.recommended > p { color: #aaa8a3; }
.plan-price { margin: 33px 0; }
.plan-price strong, .plan-price small { display: block; }
.plan-price strong { font-size: 36px; letter-spacing: -.05em; }
.plan-price small { margin-top: 7px; color: #8b8780; font-size: 10px; }
.plan-card ul { margin: 0 0 30px; padding: 0; list-style: none; color: #66635e; font-size: 12px; }
.recommended ul { color: #d2d0cc; }
.plan-card li { display: flex; gap: 9px; margin: 13px 0; }
.plan-card li i { font-style: normal; font-weight: 800; }
.plan-card form { margin-top: auto; }
.plan-card .primary-button { background: var(--ink); }
.recommended .primary-button { color: var(--ink); background: white; }
.step-line { width: min(600px, calc(100% - 40px)); margin: 0 auto 35px; display: flex; align-items: center; }
.step-line span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #96928b; background: #dfdcd6; font-size: 10px; font-weight: 760; }
.step-line span.active, .step-line span.done { color: white; background: var(--ink); }
.step-line i { flex: 1; height: 1px; background: #d5d2cc; }

@media (max-width: 1000px) {
    .auth-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
    .plan-grid { grid-template-columns: 1fr 1fr; }
    .plan-card.recommended { transform: none; }
}

@media (max-width: 760px) {
    .flow-header { width: calc(100% - 28px); height: 76px; }
    .flow-main { width: calc(100% - 24px); padding-top: 25px; }
    .auth-layout { display: block; }
    .auth-intro { margin-bottom: 38px; }
    .auth-intro .assurances { display: none; }
    h1 { font-size: 52px; }
    .auth-card { padding: 27px 21px; border-radius: 23px; }
    .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .flow-header > a:last-child { font-size: 0; }
    .flow-header > a:last-child::after { content: "Zurück"; font-size: 12px; }
    .form-grid, .oauth-stack { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .form-meta { flex-direction: column; }
    .plan-heading { margin-top: 15px; }
}
