:root {
    --bg-0: #020817;
    --bg-1: #06101f;
    --bg-2: #09182a;
    --surface: rgba(7, 18, 33, 0.88);
    --surface-strong: #091321;
    --border: rgba(36, 139, 255, 0.24);
    --border-gold: rgba(255, 181, 0, 0.28);

    --blue: #0a8cff;
    --blue-bright: #19a7ff;
    --cyan: #00d7ff;
    --gold: #ffb703;
    --gold-bright: #ffc928;

    --text: #f4f8ff;
    --text-soft: #b7c4d6;
    --text-muted: #7f90a6;

    --danger: #ff5b67;
    --success: #31df9b;

    --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-0);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 130, 255, 0.10), transparent 34%),
        radial-gradient(circle at 83% 12%, rgba(255, 183, 3, 0.08), transparent 28%),
        linear-gradient(180deg, #020817 0%, #04101e 52%, #020817 100%);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    --page-width: 560px;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

.ambient {
    position: fixed;
    z-index: -2;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    pointer-events: none;
}

.ambient-blue {
    top: 4%;
    left: -140px;
    background: var(--blue);
}

.ambient-gold {
    right: -170px;
    bottom: 3%;
    background: var(--gold);
}

.legal-page {
    --page-width: 780px;
}

.brand-header {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 10px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 18px rgba(0, 148, 255, 0.22))
        drop-shadow(0 0 18px rgba(255, 183, 3, 0.16));
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.brand-blue {
    color: var(--blue-bright);
    text-shadow: 0 0 22px rgba(10, 140, 255, 0.25);
}

.brand-gold {
    color: var(--gold);
    text-shadow: 0 0 22px rgba(255, 183, 3, 0.20);
}

.brand-tagline {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.accent-cyan {
    color: var(--cyan);
}

.accent-gold {
    color: var(--gold);
}

.content {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 48px;
    display: flex;
    justify-content: center;
}

.account-card {
    position: relative;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(10, 25, 45, 0.94), rgba(4, 13, 25, 0.96));
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 183, 3, 0.035) inset,
        0 0 50px rgba(0, 139, 255, 0.07);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.account-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--cyan) 26%,
        var(--gold) 74%,
        transparent
    );
    opacity: 0.9;
}

.panel {
    padding: 34px;
}

.panel-heading {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1,
h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(1.9rem, 5vw, 2.55rem);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.3rem);
}

.panel-heading p,
.state-panel > p {
    margin: 14px 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.notice {
    display: flex;
    gap: 13px;
    margin: 0 0 24px;
    padding: 16px;
    border-radius: 14px;
    line-height: 1.55;
}

.notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.notice p {
    margin: 0;
    color: var(--text-soft);
}

.notice-warning {
    border: 1px solid var(--border-gold);
    background: linear-gradient(
        135deg,
        rgba(255, 183, 3, 0.10),
        rgba(255, 183, 3, 0.035)
    );
}

.notice-info {
    margin-top: 24px;
    border: 1px solid var(--border);
    background: rgba(0, 136, 255, 0.07);
    color: var(--text-soft);
}

.notice-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 183, 3, 0.5);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 900;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #dce7f6;
    font-size: 0.88rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(110, 142, 179, 0.34);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(2, 9, 18, 0.78);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.field input::placeholder {
    color: #64768d;
}

.field input:focus {
    border-color: var(--blue);
    background: rgba(4, 14, 27, 0.96);
    box-shadow: 0 0 0 4px rgba(10, 140, 255, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 66px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    padding: 8px 10px;
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.password-toggle:hover {
    background: rgba(0, 215, 255, 0.07);
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
}

.primary-button {
    border: 1px solid rgba(255, 183, 3, 0.55);
    color: #07101e;
    background: linear-gradient(135deg, #ffd54a, var(--gold));
    box-shadow:
        0 14px 34px rgba(255, 183, 3, 0.18),
        0 0 22px rgba(255, 183, 3, 0.08);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:hover:not(:disabled) {
    box-shadow:
        0 18px 40px rgba(255, 183, 3, 0.24),
        0 0 28px rgba(255, 183, 3, 0.11);
}

.primary-button:disabled {
    opacity: 0.62;
    cursor: wait;
}

.button-arrow {
    font-size: 1.2rem;
}

.secondary-button {
    margin-top: 24px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(0, 134, 255, 0.08);
}

.message {
    margin: -2px 0 18px;
    padding: 13px 14px;
    border-radius: 11px;
    line-height: 1.5;
}

.message-error {
    border: 1px solid rgba(255, 91, 103, 0.35);
    color: #ffabb2;
    background: rgba(255, 91, 103, 0.08);
}

.retention-note {
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}

.state-panel {
    text-align: center;
    padding-top: 46px;
    padding-bottom: 46px;
}

.state-panel .eyebrow {
    margin-top: 2px;
}

.state-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
}

.state-icon-mail {
    color: var(--cyan);
    border: 1px solid rgba(0, 215, 255, 0.35);
    background: rgba(0, 215, 255, 0.08);
    box-shadow: 0 0 36px rgba(0, 215, 255, 0.10);
}

.state-icon-success {
    color: var(--success);
    border: 1px solid rgba(49, 223, 155, 0.35);
    background: rgba(49, 223, 155, 0.08);
}

.state-icon-error {
    color: var(--danger);
    border: 1px solid rgba(255, 91, 103, 0.35);
    background: rgba(255, 91, 103, 0.08);
}

.status-line {
    width: fit-content;
    margin: 26px auto 0;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 183, 3, 0.055);
    font-size: 0.86rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.65);
}

.page-footer {
    width: min(var(--page-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 6px 0 34px;
    text-align: center;
}

.footer-line {
    display: block;
    width: min(520px, 80%);
    height: 1px;
    margin: 0 auto 20px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 215, 255, 0.35),
        rgba(255, 183, 3, 0.35),
        transparent
    );
}

.page-footer p {
    margin: 0;
    color: #75869c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.footer-separator {
    margin: 0 8px;
    color: #42536a;
}

.hidden {
    display: none !important;
}

@media (max-width: 680px) {
    .brand-header {
        padding-top: 22px;
        gap: 12px;
    }

    .brand-logo {
        width: 82px;
        height: 82px;
    }

    .brand-name {
        gap: 6px;
    }

    .brand-tagline {
        display: none;
    }

    .content {
        padding-top: 20px;
    }

    .panel {
        padding: 26px 22px;
    }

    .account-card {
        border-radius: 19px;
    }

    .page-footer p {
        line-height: 1.8;
    }
}

@media (max-width: 420px) {
    .brand-header,
    .content,
    .page-footer {
        width: min(100% - 28px, var(--page-width));
    }

    .brand-logo {
        width: 68px;
        height: 68px;
    }

    .brand-name {
        font-size: 1.75rem;
    }
}


.irreversible-warning {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(255, 91, 103, 0.30);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 91, 103, 0.09),
        rgba(255, 91, 103, 0.035)
    );
}

.irreversible-warning strong {
    display: block;
    margin-bottom: 6px;
    color: #ffabb2;
}

.irreversible-warning p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.confirmation-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 15px;
    border: 1px solid rgba(36, 139, 255, 0.20);
    border-radius: 12px;
    background: rgba(0, 136, 255, 0.045);
    cursor: pointer;
}

.confirmation-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--gold);
    cursor: pointer;
}

.confirmation-check span {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-meta {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.legal-document h2 {
    margin: 36px 0 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(36, 139, 255, 0.14);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.legal-document p {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

.legal-document ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text-soft);
    line-height: 1.65;
}

.legal-document li {
    margin: 6px 0;
}

.legal-document li::marker {
    color: var(--gold);
}

.legal-document strong {
    color: var(--text);
}

.legal-document a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 215, 255, 0.35);
}

.legal-document a:hover,
.legal-document a:focus-visible {
    border-bottom-color: var(--cyan);
}

.legal-document a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.legal-callout {
    margin: 24px 0;
}

.legal-callout strong {
    margin: 0;
    line-height: 1.6;
}

.footer-copyright {
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 680px) {
    .legal-document h2 {
        margin-top: 28px;
        padding-top: 22px;
        font-size: 1.15rem;
    }
}
