/* Extracted from recovery_help.php */
html, body {
            margin: 0;
            padding: 0;
            min-height: 100%;
        }
        * {
            box-sizing: border-box;
        }
        :root {
            --accent-color: #f2952e;
            --accent-rgb: 242, 149, 46;
            --accent-color-agama: #f2952e;
            --accent-color-crab: #bd1c1c;
            --accent-color-manta: #0084ff;
        }
        body {
            background:
                radial-gradient(circle at top, rgba(var(--accent-rgb),0.10), transparent 28%),
                linear-gradient(180deg, #303238 0%, #2b2d33 100%);
            color: #F5F5F5;
            font-family: Arial, sans-serif;
        }
        table.page-shell {
            width: 100%;
            min-height: 100vh;
        }
        .dialog-wrap {
            width: 760px;
            max-width: calc(100vw - 28px);
            margin: 28px auto;
            background: linear-gradient(180deg, #1f2126 0%, #1a1c20 100%);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 28px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
            padding: 34px 28px 30px;
            position: relative;
            overflow: hidden;
        }
        .dialog-wrap:before {
            content: "";
            position: absolute;
            top: -80px;
            right: -80px;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(var(--accent-rgb),0.14), transparent 70%);
            pointer-events: none;
        }
        .recovery-choice-wrap,
        .recovery-gp-box,
        .recovery-form-box,
        .result-box {
            width: 100%;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 1;
        }
        .recovery-question {
            font-size: 30px;
            color: #ffffff;
            margin: 0 0 12px 0;
            line-height: 1.25;
            font-weight: bold;
            letter-spacing: -0.02em;
        }
        .recovery-subtext,
        .recovery-info,
        .result-message {
            width: 100%;
            max-width: 580px;
            margin: 0 auto 24px;
            background: linear-gradient(180deg, #272a31 0%, #23262c 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 18px;
            padding: 16px 18px;
            color: #d9dde4;
            font-size: 15px;
            line-height: 1.55;
            text-align: left;
            overflow-wrap: anywhere;
            word-break: break-word;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }
        .recovery-options {
            display: flex;
            justify-content: center;
            align-items: stretch;
            flex-wrap: wrap;
            gap: 18px;
            margin: 22px 0 6px;
        }
        .recovery-options form {
            margin: 0;
        }
        .recovery-card {
            width: 205px;
            min-height: 190px;
            padding: 20px 16px 18px;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 22px;
            background: linear-gradient(180deg, #31343b 0%, #2a2d33 100%);
            color: #fff;
            cursor: pointer;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            box-shadow: 0 10px 26px rgba(0,0,0,0.16);
            transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
        }
        .recovery-card:hover {
            transform: translateY(-3px);
            border-color: rgba(var(--accent-rgb),0.55);
            box-shadow: 0 18px 34px rgba(0,0,0,0.24);
            background: linear-gradient(180deg, #383c45 0%, #2f333b 100%);
        }
        .recovery-card:active {
            transform: translateY(-1px);
        }
        .recovery-card small {
            display: block;
            margin-top: 8px;
            font-size: 13px;
            font-weight: normal;
            color: #cfd5de;
            line-height: 1.4;
        }
        .recovery-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 78px;
            margin-bottom: 14px;
        }
        .recovery-card-icon img {
            max-width: 112px;
            max-height: 66px;
            display: block;
            filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22));
        }
        .recovery-card-icon-glyph {
            width: 74px;
            height: 74px;
            border-radius: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
            border: 1px solid rgba(255,255,255,0.06);
            font-size: 34px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        }
        .recovery-gp-box ul {
            text-align: left;
            width: 100%;
            max-width: 560px;
            margin: 0 auto 24px;
            padding-left: 22px;
            color: #eef1f5;
        }
        .recovery-gp-box li {
            margin-bottom: 10px;
            line-height: 1.5;
        }
        .button {
            appearance: none;
            background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.86) 0%, var(--accent-color) 100%);
            color: #fff;
            border: none;
            min-width: 170px;
            padding: 14px 24px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            letter-spacing: 0.02em;
            box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.22);
            transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
        }
        .button:hover {
            filter: brightness(1.03);
            transform: translateY(-1px);
            box-shadow: 0 16px 28px rgba(var(--accent-rgb), 0.26);
        }
        .button:active {
            transform: translateY(0);
        }
        .recovery-form-box {
            width: 100%;
            max-width: 580px;
        }
        .recovery-field-group {
            margin-bottom: 18px;
            text-align: left;
        }
        .recovery-label {
            display: block;
            margin: 0 0 8px 4px;
            font-size: 14px;
            font-weight: bold;
            color: #eef1f5;
            letter-spacing: 0.01em;
        }
        .modern-input {
            width: 100%;
            padding: 16px 18px;
            border-radius: 16px;
            border: 1px solid #444a54;
            background: linear-gradient(180deg, #2e3239 0%, #292d34 100%);
            color: #ffffff;
            font-size: 16px;
            outline: none;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }
        .modern-input::placeholder {
            color: #9ea5af;
        }
        .modern-input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
            background: linear-gradient(180deg, #323741 0%, #2d323a 100%);
        }
        .captcha-box {
            display: inline-block;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
        }
        .captcha-image {
            display: block;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.10);
            max-width: 100%;
            height: auto;
            background: #fff;
            box-shadow: 0 10px 24px rgba(0,0,0,0.16);
        }
        .recovery-actions {
            text-align: center;
            margin-top: 24px;
        }
        .good_text,
		.err_text,
		.mess_text {
			position: relative;

			margin: 24px auto;          /* ← ВАЖНО: отступ сверху/снизу */
			max-width: 600px;
			width: fit-content;

			padding: 18px 24px;         /* чуть больше воздуха */

			border-radius: 16px;

			display: flex;
			align-items: center;
			justify-content: center;

			text-align: center;

			line-height: 1.5;
			min-height: 64px;           /* ← чтобы не было "сплющивания" */

			overflow-wrap: anywhere;
			word-break: break-word;
		}
        .good_text:before,
        .err_text:before,
        .mess_text:before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }
        .good_text {
            background: linear-gradient(180deg, rgba(47, 125, 82, 0.22) 0%, rgba(36, 96, 63, 0.18) 100%);
            border: 1px solid rgba(92, 201, 139, 0.26);
            color: #dff8e8;
        }
        .err_text {
            background: linear-gradient(180deg, rgba(116, 43, 52, 0.40) 0%, rgba(88, 33, 40, 0.32) 100%);
            border: 1px solid rgba(196, 84, 96, 0.42);
            color: #ffe2e2;
            box-shadow: 0 0 0 1px rgba(196, 84, 96, 0.05), 0 10px 28px rgba(116, 43, 52, 0.10);
        }
        .mess_text {
            background: linear-gradient(180deg, #272a31 0%, #23262c 100%);
            border: 1px solid rgba(255,255,255,0.08);
            color: #d9dde4;
        }
        @keyframes fadeInSoft {
            from {
                opacity: 0;
                transform: translateY(-4px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .result-box form {
            margin: 0;
        }
        @media (max-width: 860px) {
            .dialog-wrap {
                padding: 28px 18px 22px;
                border-radius: 24px;
            }
            .recovery-question {
                font-size: 25px;
            }
            .recovery-options {
                gap: 14px;
            }
            .recovery-card {
                width: 100%;
                max-width: 340px;
                min-height: 156px;
            }
        }
        @media (max-width: 560px) {
            body {
                background: #303238;
            }
            .dialog-wrap {
                width: auto;
                max-width: calc(100vw - 16px);
                margin: 8px auto;
                min-height: calc(100vh - 16px);
                border-radius: 22px;
                padding: 22px 14px 18px;
            }
            .recovery-question {
                font-size: 23px;
            }
            .recovery-subtext,
            .recovery-info,
            .result-message,
            .good_text,
            .err_text,
            .mess_text {
                font-size: 14px;
                padding: 14px 14px;
                border-radius: 16px;
            }
            .recovery-card {
                max-width: none;
                width: 100%;
                font-size: 22px;
                border-radius: 20px;
            }
            .recovery-card-icon {
                height: 70px;
            }
            .recovery-card-icon-glyph {
                width: 68px;
                height: 68px;
                border-radius: 20px;
            }
            .modern-input {
                padding: 15px 16px;
                border-radius: 15px;
            }
            .button {
                width: 100%;
                min-width: 0;
            }
        }
    
        .dialog-wrap:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, rgba(var(--accent-rgb),0.95) 0%, rgba(var(--accent-rgb),0.42) 100%);
            box-shadow: 0 0 18px rgba(var(--accent-rgb),0.18);
            pointer-events: none;
        }
        .recovery-subtext,
        .recovery-info,
        .result-message,
        .mess_text {
            border-color: rgba(var(--accent-rgb), 0.14);
        }
        .captcha-image {
            border-color: rgba(var(--accent-rgb), 0.18);
        }
        .recovery-card-agama {
            border-color: rgba(242, 149, 46, 0.34);
            box-shadow: 0 10px 26px rgba(0,0,0,0.16), 0 0 0 1px rgba(242, 149, 46, 0.06);
        }
        .recovery-card-crab {
            border-color: rgba(189, 28, 28, 0.34);
            box-shadow: 0 10px 26px rgba(0,0,0,0.16), 0 0 0 1px rgba(189, 28, 28, 0.06);
        }
        .recovery-card-manta {
            border-color: rgba(0, 132, 255, 0.34);
            box-shadow: 0 10px 26px rgba(0,0,0,0.16), 0 0 0 1px rgba(0, 132, 255, 0.06);
        }
        .recovery-card-agama:hover {
            border-color: rgba(242, 149, 46, 0.58);
            box-shadow: 0 18px 34px rgba(242, 149, 46, 0.14), 0 18px 34px rgba(0,0,0,0.24);
        }
        .recovery-card-crab:hover {
            border-color: rgba(189, 28, 28, 0.58);
            box-shadow: 0 18px 34px rgba(189, 28, 28, 0.14), 0 18px 34px rgba(0,0,0,0.24);
        }
        .recovery-card-manta:hover {
            border-color: rgba(0, 132, 255, 0.58);
            box-shadow: 0 18px 34px rgba(0, 132, 255, 0.14), 0 18px 34px rgba(0,0,0,0.24);
        }
