/* extracted from resources/views/portal/layouts/public.blade.php */
:root {
            --brand:        #0d2c54;
            --brand-soft:   #102f59;
            --brand-deep:   #081e3d;
            /* The brand orange reads well on the dark navy panel (5.7:1) but
               only 2.4:1 on the white form panel, in either direction. Two
               tokens: --accent for the dark side, --accent-on-light for
               anything set against white. */
            --accent:          #f58a4f;  /* on the dark navy panel only */
            --accent-on-light: #bf5000;  /* on the white form panel     */
            --cyan:         #4abfca;     /* Farbe cyan */
            --ink:          #1a1f2c;
            --muted:        #5b6472;
            --bg:           #f6f8fb;
            --line:         #e6e9ef;
            --card-shadow:  0 12px 40px rgba(13, 44, 84, .08);
        }

        * { box-sizing: border-box; }

        html, body { height: 100%; }
        body {
            background: var(--bg);
            color: var(--ink);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0;
        }

        .auth-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1.15fr 1fr;
        }

        /* ── LEFT: brand panel ─────────────────────────────────────────────── */
        .brand-panel {
            background:
                radial-gradient(circle at 88% 12%, rgba(245,138,79,.18), transparent 45%),
                radial-gradient(circle at 8% 88%, rgba(74,191,202,.15), transparent 45%),
                linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-soft) 100%);
            color: #fff;
            padding: 36px 56px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        .brand-panel::before {
            /* Subtle dot grid */
            content: "";
            position: absolute; inset: 0;
            background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
            background-size: 28px 28px;
            pointer-events: none;
        }
        .brand-panel-inner {
            position: relative; z-index: 1;
            display: flex; flex-direction: column;
            flex: 1;
        }

        .brand-logo img {
            height: 46px; width: auto; display: block;
            background: rgba(255,255,255,.96);
            padding: 8px 14px; border-radius: 10px;
        }

        .hero-block { margin-top: auto; padding: 40px 0; }
        .hero-eyebrow {
            display: inline-block;
            background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
            color: #fff; padding: 5px 12px; border-radius: 100px;
            font-size: .72rem; letter-spacing: .8px; text-transform: uppercase;
            margin-bottom: 14px; backdrop-filter: blur(6px);
        }
        .hero-title {
            font-size: clamp(1.8rem, 2.6vw, 2.4rem);
            font-weight: 700; line-height: 1.18; margin: 0 0 12px;
        }
        .hero-title em {
            font-style: normal; color: var(--accent);
        }
        .hero-sub {
            color: rgba(255,255,255,.78);
            font-size: 1rem; max-width: 480px; line-height: 1.6;
            margin-bottom: 28px;
        }

        /* ── Stat strip (social proof) ────────────────────────────────── */
        .stat-strip {
            display: flex; gap: 28px; margin: 4px 0 28px;
            padding: 16px 0;
            border-top: 1px solid rgba(255,255,255,.1);
            border-bottom: 1px solid rgba(255,255,255,.1);
        }
        .stat-item { white-space: nowrap; }
        .stat-item .stat-num {
            font-size: 1.35rem; font-weight: 800; color: var(--accent);
            line-height: 1; margin-bottom: 5px;
            font-feature-settings: "tnum";
        }
        .stat-item .stat-label {
            font-size: .7rem; color: rgba(255,255,255,.7);
            text-transform: uppercase; letter-spacing: .8px; font-weight: 500;
        }
        .stat-divider {
            width: 1px; background: rgba(255,255,255,.1);
        }

        .feature-grid { display: grid; gap: 16px; max-width: 520px; }
        .feature {
            display: flex; gap: 14px; align-items: flex-start;
        }
        .feature .ic {
            width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
            background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
            display: inline-flex; align-items: center; justify-content: center;
            color: var(--cyan); font-size: 1.1rem;
        }
        .feature h4 {
            font-size: .95rem; font-weight: 600; margin: 0 0 2px; color: #fff;
        }
        .feature p {
            font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; line-height: 1.4;
        }

        /* ── Certification trust strip ─────────────────────────────────── */
        .cert-strip { margin-top: 28px; }
        .cert-strip .cert-label {
            font-size: .68rem; letter-spacing: 1.4px; text-transform: uppercase;
            color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 10px;
        }
        .cert-row {
            display: flex; flex-wrap: wrap; gap: 8px;
        }
        .cert-badge {
            display: inline-flex; align-items: center; gap: 6px;
            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.16);
            color: rgba(255,255,255,.92);
            padding: 6px 12px; border-radius: 100px;
            font-size: .78rem; font-weight: 600; letter-spacing: .2px;
            backdrop-filter: blur(4px);
        }
        .cert-badge i {
            color: var(--cyan); font-size: .85rem;
        }

        /* ── Social row ───────────────────────────────────────────────── */
        .social-row {
            margin-top: 22px;
            display: flex; gap: 8px; flex-wrap: wrap;
        }
        .social-row a {
            display: inline-flex; align-items: center; justify-content: center;
            width: 34px; height: 34px; border-radius: 50%;
            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.16);
            color: rgba(255,255,255,.85); font-size: .95rem;
            text-decoration: none; transition: all .15s;
        }
        .social-row a:hover {
            background: var(--accent); border-color: var(--accent);
            color: #fff; transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(245, 138, 79, .35);
        }

        .brand-foot {
            margin-top: auto; padding-top: 24px;
            font-size: .78rem; color: rgba(255,255,255,.55);
            display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
            border-top: 1px solid rgba(255,255,255,.08);
        }
        .brand-foot a { color: rgba(255,255,255,.85); text-decoration: none; }
        .brand-foot a:hover { color: #fff; }

        /* ── RIGHT: form panel ─────────────────────────────────────────────── */
        .form-panel {
            display: flex; flex-direction: column; align-items: stretch;
            padding: 36px 40px;
            background: #fff;
            position: relative;
        }
        .top-row {
            display: flex; justify-content: flex-end; gap: 20px;
            font-size: .85rem;
        }
        .top-row a {
            color: var(--muted); text-decoration: none;
        }
        .top-row a strong { color: var(--brand); font-weight: 600; }
        .top-row a:hover strong { color: var(--accent-on-light); }

        .form-wrap {
            flex: 1; display: flex; align-items: flex-start; justify-content: center;
            padding-top: 48px;
        }
        .form-card {
            width: 100%; max-width: 440px;
        }
        .form-card .eyebrow {
            font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase;
            color: var(--accent-on-light); font-weight: 700; margin-bottom: 8px;
        }
        .form-card h1 {
            font-size: 1.7rem; font-weight: 700; margin: 0 0 6px;
            color: var(--ink);
        }
        .form-card .subtitle {
            color: var(--muted); margin-bottom: 24px; font-size: .92rem;
        }
        .form-label {
            font-size: .8rem; font-weight: 600; color: #3b4250; margin-bottom: 4px;
        }
        .form-control, .form-select {
            border: 1px solid var(--line);
            border-radius: 8px; padding: 10px 12px; font-size: .92rem;
            background: #fff;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px rgba(13,44,84,.15);
            outline: none;
        }
        .form-help { font-size: .78rem; color: var(--muted); margin-top: 4px; }
        .req { color: #d32f2f; font-weight: 600; }

        .btn-primary-action {
            background: var(--brand);
            color: #fff; border: 0; width: 100%;
            padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .95rem;
            transition: background .15s, transform .05s;
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-primary-action:hover { background: #143a6c; color: #fff; }
        .btn-primary-action:active { transform: translateY(1px); }
        .btn-primary-action.btn-accent { background: var(--accent-on-light); }
        .btn-primary-action.btn-accent:hover { background: #a8481a; }

        .form-foot {
            margin-top: 18px; text-align: center; font-size: .85rem;
            color: var(--muted);
        }
        .form-foot a {
            color: var(--accent-on-light); text-decoration: none; font-weight: 600;
        }
        .form-foot a:hover { color: #8f3f14; }

        .alert-clean {
            padding: 11px 14px; border-radius: 8px; font-size: .88rem;
            margin-bottom: 16px;
        }
        .alert-clean ul { margin: 0; padding-left: 18px; }
        .alert-clean.success { background: #e7f5ec; border: 1px solid #b3dec1; color: #1d6e3a; }
        .alert-clean.error   { background: #fdecea; border: 1px solid #f5b3ad; color: #a82618; }

        .bottom-foot {
            text-align: center; margin-top: 30px;
            font-size: .78rem; color: var(--muted);
        }

        /* ── Tablet & mobile (stack) ────────────────────────────────────────── */
        @media (max-width: 991px) {
            .auth-shell { grid-template-columns: 1fr; min-height: auto; }
            html, body { height: auto; }

            .brand-panel {
                padding: 22px 24px 26px;
                min-height: auto;
            }
            .brand-panel::before { background-size: 22px 22px; }
            .brand-panel .stat-strip,
            .brand-panel .feature-grid,
            .brand-panel .cert-strip,
            .brand-panel .social-row,
            .brand-panel .brand-foot { display: none; }

            .brand-logo img { height: 40px; padding: 6px 12px; }

            .hero-block { padding: 14px 0 0; margin-top: 14px; }
            .hero-eyebrow { font-size: .68rem; padding: 4px 10px; margin-bottom: 10px; }
            .hero-title { font-size: 1.35rem; line-height: 1.25; margin-bottom: 6px; }
            .hero-title br { display: none; }
            .hero-sub { font-size: .88rem; line-height: 1.5; margin-bottom: 0; max-width: none; }

            .form-panel { padding: 20px 22px 28px; }
            .top-row { font-size: .8rem; }
            .form-wrap { padding-top: 18px; align-items: center; }
            .form-card .eyebrow { font-size: .68rem; margin-bottom: 6px; }
            .form-card h1 { font-size: 1.45rem; }
            .form-card .subtitle { font-size: .88rem; margin-bottom: 18px; }

            /* iOS Safari zooms in on focus when input font < 16px — force 16px */
            .form-control,
            .form-select {
                font-size: 16px;
                padding: 11px 12px;
                border-radius: 8px;
            }
            .btn-primary-action { padding: 13px 20px; font-size: 1rem; }
        }

        /* ── Phones (≤ 575px) ─────────────────────────────────────────────── */
        @media (max-width: 575px) {
            .brand-panel { padding: 18px 18px 22px; }
            .form-panel { padding: 16px 18px 22px; }
            .form-wrap { padding-top: 12px; }
            .form-card h1 { font-size: 1.3rem; }
            .hero-title { font-size: 1.25rem; }
            .top-row { justify-content: center; }
            .bottom-foot { margin-top: 22px; font-size: .74rem; }
        }
