:root {
    --password-night: #070b18;
    --password-panel: #10162b;
    --password-text: #f6f8ff;
    --password-muted: #b3bbd3;
    --password-line: rgba(219, 227, 255, .2);
    --password-cyan: #02abff;
    --password-violet: #7b78ff;
    --password-green: #55dda8;
}

body {
    background: var(--password-night);
    color: var(--password-text);
    font-family: "Prompt", sans-serif;
}

.password-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 104px 24px 48px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(56, 92, 201, .19), transparent 34%),
        #070b18;
    background-size: 64px 64px, 64px 64px, auto, auto;
}

.password-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}
.password-ambient-one { width: 400px; height: 400px; top: -180px; right: 8%; background: rgba(2, 171, 255, .16); }
.password-ambient-two { width: 420px; height: 420px; bottom: -250px; left: 5%; background: rgba(123, 120, 255, .16); }

.password-brand {
    position: absolute;
    top: 28px;
    left: 36px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--password-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-decoration: none;
}
.password-brand > span:last-child > span { color: #70d8ff; }
.password-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(2, 171, 255, .36);
    border-radius: 11px;
    background: rgba(2, 171, 255, .09);
    box-shadow: 0 8px 30px rgba(2, 171, 255, .12);
}
.password-brand-mark svg { width: 25px; fill: none; stroke: #70d8ff; stroke-width: 1.7; }

.password-card {
    width: min(100%, 520px);
    padding: 38px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--password-line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
    box-shadow: 0 35px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(24px);
}

.password-card-head { text-align: center; margin-bottom: 28px; }
.password-lock {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(2, 171, 255, .28);
    border-radius: 17px;
    color: #70d8ff;
    background: linear-gradient(145deg, rgba(2, 171, 255, .16), rgba(123, 120, 255, .11));
    box-shadow: 0 14px 36px rgba(2, 171, 255, .12);
}
.password-lock svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-kicker { color: #70d8ff; font: 500 9px "DM Mono", monospace; letter-spacing: .13em; }
.password-card-head h1 { margin: 10px 0 7px; color: var(--password-text); font-size: 30px; line-height: 1.25; letter-spacing: -.035em; }
.password-card-head p { color: var(--password-muted); font-size: 14px; line-height: 1.75; }

.password-field { margin-bottom: 18px; }
.password-field[hidden] { display: none; }
.password-field label { display: block; margin-bottom: 8px; color: #eef1ff; font-size: 14px; font-weight: 600; }
.password-field > small { display: block; margin-top: 7px; color: #a5aec9; font-size: 12px; }
.password-input-shell {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 0 9px 0 15px;
    border: 1px solid var(--password-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.password-input-shell:focus-within {
    border-color: rgba(2, 171, 255, .65);
    background: rgba(2, 171, 255, .055);
    box-shadow: 0 0 0 3px rgba(2, 171, 255, .09);
}
.password-input-shell.is-valid {
    border-color: rgba(85, 221, 168, .72);
    background: rgba(85, 221, 168, .055);
    box-shadow: 0 0 0 3px rgba(85, 221, 168, .08);
}
.password-input-shell.is-invalid {
    border-color: rgba(255, 104, 137, .78);
    background: rgba(255, 95, 134, .055);
    box-shadow: 0 0 0 3px rgba(255, 95, 134, .08);
}
.password-input-shell > svg {
    width: 17px;
    fill: none;
    stroke: #697594;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.password-input-shell input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--password-text);
    background: transparent;
    font: 400 13px "Prompt", sans-serif;
}
.password-input-shell input::placeholder { color: #858eaa; opacity: 1; }
.password-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #75819f;
    background: transparent;
    cursor: pointer;
}
.password-toggle:hover { color: #70d8ff; background: rgba(2, 171, 255, .08); }
.password-toggle svg { grid-area: 1 / 1; width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.password-requirements {
    display: block;
    margin: 22px 0;
    padding: 15px;
    border: 1px solid rgba(2, 171, 255, .13);
    border-radius: 12px;
    color: #c0c7dc;
    background: rgba(2, 171, 255, .045);
}
.password-requirements > strong { display: block; margin-bottom: 11px; color: #f2f4ff; font-size: 13px; }
.requirement-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.requirement-list li { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; transition: color .18s ease; }
.requirement-status { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; }
.requirement-list li.pending { color: #a7b0ca; }
.requirement-list li.valid { color: #6ce9b7; }
.requirement-list li.invalid { color: #ff8da7; }
.requirement-tip { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(219, 227, 255, .1); color: #a5aec7; font-size: 11px; line-height: 1.7; }

.password-submit {
    width: 100%;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #008fd7, #02abff);
    box-shadow: 0 14px 32px rgba(2, 171, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .25);
    font: 600 13px "Prompt", sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.password-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(2, 171, 255, .32); }
.password-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.password-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.password-footer { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--password-line); text-align: center; }
.password-footer a { display: inline-flex; align-items: center; gap: 6px; color: #70d8ff; font-size: 12px; font-weight: 500; text-decoration: none; }
.password-footer a:hover { color: white; }
.password-footer a svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.password-footer p { margin-top: 12px; color: #9aa4bf; font-size: 11px; line-height: 1.6; }

.password-alert {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 500;
}
.password-alert.show { display: block; }
.password-alert.error { color: #ffafc0; border-color: rgba(255, 95, 134, .25); background: rgba(255, 95, 134, .08); }
.password-alert.success { color: #8eebc2; border-color: rgba(85, 221, 168, .24); background: rgba(85, 221, 168, .07); }
.password-loading { display: none; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: #9aa4c0; font-size: 12px; }
.password-loading.show { display: flex; }
.password-spinner { width: 17px; height: 17px; border: 2px solid rgba(255, 255, 255, .23); border-top-color: var(--password-cyan); border-radius: 50%; animation: password-spin .7s linear infinite; }
.is-loading { opacity: .72; }
@keyframes password-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .password-page { align-items: start; padding: 90px 14px 24px; overflow-y: auto; }
    .password-brand { top: 22px; left: 20px; }
    .password-card { padding: 28px 20px; border-radius: 20px; }
    .password-card-head h1 { font-size: 27px; }
    .password-input-shell input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
