* {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
        }

        html:not(.has-app-shell-js) [data-reveal] {
            opacity: 1;
            transform: none;
            filter: none;
        }

        html.has-app-shell-js [data-reveal] {
            opacity: 0;
            transform: translateY(18px);
            filter: blur(4px);
        }

        html.has-app-shell-js [data-reveal].is-revealed {
            opacity: 1;
            transform: translateY(0);
            filter: none;
        }

        .register-page::before,
        .register-page::after {
            content: '';
            position: fixed;
            width: 380px;
            height: 380px;
            border-radius: 50%;
            filter: blur(32px);
            opacity: 0.3;
            pointer-events: none;
            z-index: 0;
        }

        .register-page::before {
            top: -100px;
            right: -120px;
            background: radial-gradient(circle, rgba(231, 201, 163, 0.38), transparent 68%);
        }

        .register-page::after {
            bottom: -140px;
            left: -120px;
            background: radial-gradient(circle, rgba(214, 195, 174, 0.35), transparent 70%);
        }

        .brand-shell {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: grid;
            align-content: center;
            gap: 24px;
        }

        .brand-topbar {
            padding: 18px 24px;
        }

        .brand-mark {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
        }

        .brand-badge {
            width: 48px;
            height: 48px;
            border-radius: 16px;
            display: grid;
            place-items: center;
            font: 700 0.82rem/1 var(--fx-font-mono);
            color: var(--fx-bg);
            background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-strong));
            box-shadow: 0 18px 28px rgba(199, 139, 93, 0.28);
        }

        .register-layout {
            display: grid;
            gap: 24px;
            grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        }

        .brand-panel {
            padding: 34px;
        }

        .story-panel {
            display: grid;
            gap: 18px;
            align-content: start;
        }

        .eyebrow {
            color: var(--fx-text-muted);
            font: 700 0.8rem/1 var(--fx-font-mono);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .story-panel h1 {
            margin: 0;
            font: 800 clamp(2.2rem, 5vw, 3.4rem)/1.02 var(--fx-font-display);
            letter-spacing: -0.04em;
        }

        .story-panel p {
            margin: 0;
            color: var(--fx-text-muted);
            line-height: 1.75;
        }

        .story-list {
            display: grid;
            gap: 14px;
        }

        .story-list div {
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid var(--fx-border);
            background: rgba(255, 255, 255, 0.54);
        }

        .story-list strong {
            display: block;
            margin-bottom: 8px;
            font: 700 1rem/1.2 var(--fx-font-display);
        }

        .register-card {
            display: grid;
            gap: 24px;
        }

        .register-card h2 {
            margin: 0;
            font: 700 1.8rem/1.1 var(--fx-font-display);
        }

        .register-card p {
            margin: 0;
            color: var(--fx-text-muted);
            line-height: 1.7;
        }

        #registerForm {
            display: grid;
            gap: 14px;
        }

        .input-group {
            display: grid;
            gap: 8px;
        }

        .input-group label {
            color: var(--fx-text);
            font-weight: 600;
        }

        .input-group input {
            width: 100%;
            border-radius: 18px;
            border: 1px solid var(--fx-border);
            background: rgba(255, 255, 255, 0.66);
            color: var(--fx-text);
            padding: 15px 18px;
            font: 500 1rem/1.4 var(--fx-font-ui);
        }

        .input-group input::placeholder {
            color: var(--fx-text-muted);
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--fx-accent);
            box-shadow: 0 0 0 4px rgba(199, 139, 93, 0.12);
            background: rgba(255, 255, 255, 0.82);
        }

        .password-strength {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        .password-strength-bar {
            height: 5px;
            border-radius: 999px;
            background: rgba(128, 107, 90, 0.18);
            transition: background 0.2s ease, box-shadow 0.2s ease;
        }

        .password-strength-bar.active.weak {
            background: var(--fx-danger);
            box-shadow: 0 0 10px rgba(179, 94, 88, 0.22);
        }

        .password-strength-bar.active.medium {
            background: var(--fx-warning);
            box-shadow: 0 0 10px rgba(184, 135, 66, 0.22);
        }

        .password-strength-bar.active.strong {
            background: var(--fx-success);
            box-shadow: 0 0 10px rgba(85, 178, 127, 0.22);
        }

        .password-requirements {
            display: grid;
            gap: 8px;
        }

        .requirement-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--fx-text-muted);
            font-size: 0.92rem;
        }

        .requirement-item .icon {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-size: 0.72rem;
            border: 1px solid rgba(128, 107, 90, 0.18);
        }

        .requirement-item.valid {
            color: #356045;
        }

        .requirement-item.valid .icon {
            background: rgba(85, 178, 127, 0.16);
            color: var(--fx-success);
            border-color: rgba(85, 178, 127, 0.4);
        }

        .btn-primary {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 15px 22px;
            border: none;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-strong));
            color: #1b140f;
            font: 800 0.96rem/1 var(--fx-font-ui);
            cursor: pointer;
            box-shadow: 0 18px 32px rgba(199, 139, 93, 0.22);
            margin-top: 6px;
        }

        .form-links {
            text-align: center;
            display: grid;
            gap: 10px;
        }

        .form-links p {
            margin: 0;
        }

        .form-links a {
            color: var(--fx-accent-strong);
            text-decoration: none;
            font-weight: 600;
        }

        .form-links a:hover {
            color: var(--fx-text);
        }

        .footer-text {
            text-align: center;
            color: var(--fx-text-muted);
            font-size: 0.9rem;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(246, 240, 231, 0.68);
            backdrop-filter: blur(16px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .modal-overlay.show {
            display: flex !important;
        }

        .modal-content {
            width: min(100%, 540px);
            border-radius: 28px;
            border: 1px solid var(--fx-border-strong);
            background: rgba(255, 248, 240, 0.98);
            box-shadow: var(--fx-shadow-lg);
            padding: 30px;
            text-align: center;
        }

        .modal-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            border-radius: 24px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-strong));
            color: #1b140f;
        }

        .modal-title {
            margin: 0 0 12px;
            font: 700 1.7rem/1.1 var(--fx-font-display);
        }

        .modal-description {
            color: var(--fx-text-muted);
            line-height: 1.7;
        }

        .email-display,
        .info-box {
            border-radius: 18px;
            padding: 16px 18px;
            margin: 16px 0;
            text-align: left;
        }

        .email-display {
            background: rgba(255, 255, 255, 0.54);
            border: 1px solid var(--fx-border);
        }

        .email-display strong {
            color: var(--fx-accent-strong);
            font-size: 1.06rem;
        }

        .info-box {
            background: rgba(255, 255, 255, 0.54);
            border: 1px solid var(--fx-border);
            color: var(--fx-text-muted);
            line-height: 1.7;
        }

        .modal-footer {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 24px;
        }

        .modal-btn {
            padding: 12px 18px;
            border-radius: 999px;
            border: 1px solid var(--fx-border);
            background: rgba(255, 255, 255, 0.54);
            color: var(--fx-text);
            font: 700 0.9rem/1 var(--fx-font-ui);
            cursor: pointer;
        }

        .modal-btn-primary {
            background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-strong));
            color: #1b140f;
            border-color: transparent;
        }

        @media (max-width: 980px) {
            .register-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .brand-panel {
                padding: 28px;
            }

            .modal-footer {
                flex-direction: column;
            }
        }
