:root {
    --blue: #174ea6;
    --blue-dark: #123c80;
    --cyan: #2f80ed;
    --ink: #101828;
    --muted: #667085;
    --line: #d8e3f1;
    --danger: #c0352b;
    --shadow: 0 22px 58px rgba(15, 23, 42, 0.11);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(245, 197, 66, 0.18), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(47, 128, 237, 0.18), transparent 30%),
        linear-gradient(135deg, #eef5ff 0%, #f8fbff 46%, #eef6ff 100%);
    color: var(--ink);
    font-family: Tahoma, Arial, sans-serif;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
}

h1 {
    font-size: 2.15rem;
    line-height: 1.2;
}

.page {
    margin: 0 auto;
    padding: 28px 0 36px;
    width: min(1080px, calc(100% - 28px));
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(216, 227, 241, 0.78);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 16px;
    position: relative;
    z-index: 50;
}

.brand {
    display: grid;
    gap: 2px 10px;
    grid-template-columns: auto 1fr;
    min-width: 0;
}

.brand-logo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 78, 166, 0.12);
    grid-row: span 2;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    width: 42px;
}

.brand strong {
    display: block;
    font-size: 1.35rem;
}

.brand span,
.muted,
.footer-note {
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
}

.topbar-mobile-menu {
    display: none;
    position: relative;
    z-index: 90;
}

.mobile-menu-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    height: 42px;
    justify-content: center;
    list-style: none;
    width: 42px;
}

.mobile-menu-button::-webkit-details-marker {
    display: none;
}

.mobile-menu-button span {
    background: var(--blue);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 20px;
}

.mobile-menu-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
    display: grid;
    min-width: 180px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 110;
}

.mobile-menu-panel a {
    border-radius: 6px;
    color: var(--ink);
    font-weight: 700;
    padding: 11px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.panel {
    background: #fff;
    border: 1px solid rgba(216, 227, 241, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.reset-shell {
    box-shadow: 0 24px 64px rgba(23, 78, 166, 0.14);
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
}

.reset-copy {
    background:
        linear-gradient(160deg, rgba(8, 31, 68, 0.18), transparent 42%),
        linear-gradient(180deg, #174ea6 0%, #123c80 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 34px;
}

.eyebrow {
    background: #eef6ff;
    border: 1px solid #bfd8ff;
    border-radius: 7px;
    color: var(--blue);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding: 6px 10px;
}

.reset-copy .eyebrow {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    margin-bottom: 0;
}

.reset-copy h1 {
    margin-bottom: 0;
}

.reset-copy .muted {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.reset-note {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.reset-note span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.form-wrap {
    background: #fff;
    padding: 34px;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    color: #344054;
    font-size: 0.96rem;
    font-weight: 700;
}

input {
    background: #fff;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    min-height: 50px;
    padding: 12px 14px;
    width: 100%;
}

input:focus {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
    outline: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #174ea6, #2f80ed);
    border-radius: 14px;
    box-shadow: 0 14px 24px rgba(23, 78, 166, 0.22);
    color: #fff;
    font-size: 1.05rem;
    min-height: 54px;
    padding: 14px 22px;
}

.btn-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(216, 227, 241, 0.96);
    color: var(--blue);
}

.alert {
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 12px;
}

.alert-danger {
    background: #fff1f0;
    border: 1px solid #ffd1cc;
    color: var(--danger);
}

.alert-ok {
    background: #ecfdf3;
    border: 1px solid #b8efd1;
    color: #067647;
}

.footer-note {
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    margin-top: 18px;
    padding-top: 16px;
}

@media (max-width: 800px) {
    .page {
        padding: 12px 0;
        width: min(100% - 20px, 1080px);
    }

    .reset-shell,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 12px;
    }

    .brand {
        flex: 1 1 auto;
    }

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

    .brand strong {
        font-size: 1.08rem;
    }

    .brand span {
        font-size: 0.78rem;
    }

    .topbar .topbar-actions {
        display: none;
    }

    .topbar-mobile-menu {
        display: block;
        flex: 0 0 auto;
    }

    .mobile-menu-button {
        background: linear-gradient(135deg, #174ea6, #2f80ed);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 22px rgba(23, 78, 166, 0.22);
        height: 44px;
        width: 44px;
    }

    .mobile-menu-button span {
        background: #fff;
        width: 19px;
    }

    .mobile-menu-panel {
        border-color: rgba(216, 227, 241, 0.96);
        border-radius: 16px;
        box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2);
        min-width: min(280px, calc(100vw - 28px));
        padding: 8px;
        right: 0;
        top: calc(100% + 10px);
    }

    .mobile-menu-panel a {
        align-items: center;
        background: #f8fbff;
        border: 1px solid #e2ebf7;
        border-radius: 10px;
        display: flex;
        min-height: 44px;
        padding: 11px 12px;
        white-space: normal;
    }

    h1 {
        font-size: 1.58rem;
    }

    .reset-copy,
    .form-wrap {
        padding: 24px;
    }

    .panel {
        border-radius: 18px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        min-height: 48px;
        width: 100%;
    }

    .btn-primary {
        font-size: 1.14rem;
        min-height: 64px;
        padding: 17px 20px;
    }
}

@media (max-width: 420px) {
    .page {
        width: min(100% - 12px, 1080px);
    }
}
