body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 28% 18%, rgba(184, 29, 47, 0.24), transparent 16rem),
        radial-gradient(circle at 78% 78%, rgba(247, 127, 136, 0.12), transparent 18rem),
        linear-gradient(135deg, #030303 0%, #0b0b0c 56%, #000000 100%);
    color: #f9fafb;
    display: flex;
    flex-direction: column;
}

.password-page {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 58px);
    display: grid;
    place-items: center;
    padding: 40px 18px;
}

.password-shell {
    width: min(100%, 460px);
}

.password-brand {
    width: min(260px, 72vw);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.password-brand__logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.password-panel {
    position: relative;
    overflow: hidden;
    padding: 32px 30px 30px;
    background:
        linear-gradient(180deg, rgba(10, 12, 18, 0.84) 0%, rgba(10, 12, 18, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(184, 29, 47, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.password-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(247, 127, 136, 0.12), transparent 35%),
        radial-gradient(circle at 88% 72%, rgba(184, 29, 47, 0.12), transparent 28%);
    pointer-events: none;
}

.password-panel__intro,
.password-form,
.password-help {
    position: relative;
    z-index: 1;
}

.password-panel__intro {
    margin-bottom: 26px;
}

.password-panel__eyebrow {
    margin: 0 0 10px;
    color: rgba(247, 127, 136, 0.95);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.password-panel h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 2.55rem);
    line-height: 1.05;
    font-weight: 800;
}

.password-panel p {
    margin: 14px 0 0;
    color: rgba(229, 231, 235, 0.74);
    font-size: 0.98rem;
    line-height: 1.65;
}

.password-form {
    display: grid;
    gap: 18px;
}

.password-field {
    display: grid;
    gap: 8px;
}

.password-field label {
    color: rgba(249, 250, 251, 0.9);
    font-size: 0.84rem;
    font-weight: 700;
}

.form-control {
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: rgba(229, 231, 235, 0.45);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(247, 127, 136, 0.72);
    box-shadow: 0 0 0 4px rgba(184, 29, 47, 0.18);
    color: #ffffff;
    outline: none;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(10, 12, 18, 0.95) inset;
    box-shadow: 0 0 0 1000px rgba(10, 12, 18, 0.95) inset;
    border-color: rgba(247, 127, 136, 0.42);
    caret-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
}

.btn-password {
    min-height: 48px;
    width: 100%;
    margin-top: 6px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 59, 73, 0.42);
    border-radius: 999px;
    background: rgba(227, 32, 46, 0.12);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 8px 18px rgba(227, 32, 46, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn-password:hover {
    background: rgba(227, 32, 46, 0.18);
    border-color: rgba(255, 59, 73, 0.62);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(227, 32, 46, 0.16);
}

.btn-password:focus-visible,
.password-brand:focus-visible,
.password-back:focus-visible,
.password-help a:focus-visible {
    outline: 2px solid rgba(247, 127, 136, 0.8);
    outline-offset: 3px;
}

.password-help {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    gap: 8px;
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.94rem;
}

.password-help a,
.password-back {
    color: #f77f88;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.password-help a:hover,
.password-back:hover {
    color: #ffffff;
}

.password-back {
    width: max-content;
    margin: 20px auto 0;
    display: block;
    color: rgba(249, 250, 251, 0.72);
    font-size: 0.86rem;
}

footer {
    flex: 0 0 auto;
}

@media (max-width: 520px) {
    .password-page {
        min-height: calc(100vh - 52px);
        padding: 28px 14px;
    }

    .password-brand {
        width: min(220px, 72vw);
        margin-bottom: 22px;
    }

    .password-panel {
        padding: 24px 18px;
    }

    .password-help {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}
