/* MarketDG CSP migration: extracted from inscription.php. */
* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f4f6f8;
            color: #222;
        }

        .container {
            width: 100%;
            max-width: 520px;
            margin: 50px auto;
            padding: 20px;
        }

        .card {
            background: #fff;
            border-radius: 14px;
            padding: 30px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }

        .logo {
            text-align: center;
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #2563eb;
        }

        .subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 25px;
        }

        h1 {
            text-align: center;
            margin: 0 0 25px;
            font-size: 24px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        label {
            display: block;
            margin-bottom: 7px;
            font-weight: 600;
        }

        input,
        select {
            width: 100%;
            padding: 12px 13px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 15px;
            background: #fff;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .required {
            color: #dc2626;
        }

        .optional {
            color: #777;
            font-size: 13px;
            font-weight: normal;
        }

        .message {
            padding: 12px 14px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .message.error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .btn {
            width: 100%;
            border: none;
            border-radius: 8px;
            padding: 13px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            background: #2563eb;
            color: #fff;
            transition: 0.2s;
        }

        .btn:hover {
            background: #1d4ed8;
        }

        .links {
            text-align: center;
            margin-top: 22px;
            color: #666;
            font-size: 14px;
        }

        .links a {
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
        }

        .links a:hover {
            text-decoration: underline;
        }

        .password-info {
            margin-top: 6px;
            color: #777;
            font-size: 12px;
        }

        @media (max-width: 600px) {
            .container {
                margin: 20px auto;
                padding: 12px;
            }

            .card {
                padding: 22px;
            }
        }

        body {
            min-height: 100vh;
            background:
                radial-gradient(ellipse at 12% 8%, rgba(57, 133, 255, 0.13), transparent 34%),
                radial-gradient(ellipse at 92% 90%, rgba(68, 179, 153, 0.12), transparent 32%),
                linear-gradient(145deg, #f5f8fd 0%, #edf3fa 100%);
            color: #172033;
            font-family: Inter, "Segoe UI", Arial, sans-serif;
        }

        .container {
            max-width: 560px;
            margin: 34px auto;
            padding: 20px;
        }

        .card {
            border: 1px solid rgba(204, 215, 230, 0.9);
            border-radius: 22px;
            padding: clamp(24px, 6vw, 38px);
            box-shadow: 0 22px 60px rgba(28, 49, 82, 0.12), 0 3px 10px rgba(28, 49, 82, 0.04);
        }

        .logo {
            color: #2457c5;
            font-size: 27px;
            letter-spacing: -0.04em;
        }

        .subtitle {
            color: #586579;
            line-height: 1.6;
        }

        h1 {
            color: #172033;
            font-size: clamp(25px, 5vw, 30px);
            letter-spacing: -0.035em;
        }

        input,
        select {
            min-height: 48px;
            border-color: #d8e0eb;
            border-radius: 11px;
            color: #172033;
            transition: border-color 160ms ease, box-shadow 160ms ease;
        }

        input:focus-visible,
        select:focus-visible {
            border-color: #3975d4;
            outline: 3px solid rgba(37, 99, 235, 0.2);
            outline-offset: 1px;
            box-shadow: none;
        }

        .btn {
            min-height: 52px;
            border: 1px solid #1e50b4;
            border-radius: 11px;
            background: linear-gradient(135deg, #2866d2, #1f50b3);
            box-shadow: 0 8px 18px rgba(37, 91, 190, 0.2);
            transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .btn:hover {
            background: linear-gradient(135deg, #225bbf, #193f91);
            box-shadow: 0 10px 22px rgba(37, 91, 190, 0.27);
            transform: translateY(-1px);
        }

        .email-verification-hint {
            margin: 8px 1px 0;
            color: #66748a;
            font-size: 12px;
            line-height: 1.5;
        }

        body.dark-theme {
            color: #e8eee9;
            background:
                radial-gradient(ellipse at 12% 8%, rgba(45, 92, 153, 0.2), transparent 34%),
                radial-gradient(ellipse at 92% 90%, rgba(47, 111, 83, 0.2), transparent 32%),
                #151a17;
        }

        body.dark-theme .card {
            background: rgba(32, 39, 35, 0.97);
            border-color: #37433b;
        }

        body.dark-theme .logo,
        body.dark-theme h1 {
            color: #e8eee9;
        }

        body.dark-theme .subtitle,
        body.dark-theme .email-verification-hint {
            color: #a6b1a9;
        }

        body.dark-theme input,
        body.dark-theme select {
            color: #e8eee9;
            background: #252d28;
            border-color: #46534a;
        }

        @media (max-width: 600px) {
            .container {
                margin: 18px auto;
                padding: 12px;
            }

            .card {
                border-radius: 18px;
            }
        }
