:root {
    --brand-navy: #2b2d7f;
    --brand-navy-dark: #232057;
    --bg: #0f1126;
    --bg-soft: #16193a;
    --card-bg: #ffffff;
    --text: #101828;
    --muted: #667085;
    --border: #e4e7ec;
    --success-bg: #ecfdf3;
    --success-border: #abefc6;
    --success-text: #067647;
    --error-bg: #fef3f2;
    --error-border: #fecdca;
    --error-text: #b42318;
    --info-bg: #eef2ff;
    --info-border: #c7d2fe;
    --info-text: #232057;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(43, 45, 127, 0.18), transparent 30%),
        linear-gradient(180deg, #11142c 0%, #0d1024 100%);
    color: var(--text);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.account-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 18px 20px;
}

.topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand__logo {
    width: 150px;
    height: auto;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__link {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    opacity: 0.88;
}

.topbar__link:hover {
    opacity: 1;
}

.screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 48px;
}

.panel {
    width: 100%;
    max-width: 560px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}

.panel__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(43, 45, 127, 0.08);
    color: var(--brand-navy-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.panel__title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--brand-navy-dark);
}

.panel__subtitle {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.form-group {
    margin-bottom: 14px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 1rem;
    color: var(--text);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px rgba(43, 45, 127, 0.12);
}

.button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.08s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover {
    opacity: 0.97;
}

.button:active {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.button + .button {
    margin-top: 12px;
}

.button--primary {
    background: var(--brand-navy);
    color: #ffffff;
}

.button--secondary {
    background: #f5f7ff;
    color: var(--brand-navy-dark);
    border: 1px solid #dfe6ff;
}

.button--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.status-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
}

.status-row + .status-row {
    margin-top: 14px;
}

.status-row__label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.status-row__value {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.4;
}

.note {
    margin: 0 0 18px;
    padding: 14px 15px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.note--info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
}

.note--success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.note--error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.message {
    margin-top: 14px;
    padding: 14px 15px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.message--success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.message--error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.message--info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
}

@media (max-width: 768px) {
    .topbar {
        padding: 14px 16px;
    }

    .brand__logo {
        width: 136px;
    }

    .screen {
        align-items: flex-start;
        padding: 18px 16px 32px;
    }

    .panel {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .panel__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 12px 14px;
    }

    .brand__logo {
        width: 126px;
    }

    .panel {
        padding: 22px 16px;
    }

    .panel__title {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .input {
        transition: none;
    }
}