.password-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.password-hero {
    flex: 1 0 auto;
    padding: 52px 0;
}

.password-copy {
    position: sticky;
    top: 108px;
}

.password-title {
    max-width: 620px;
    margin: 18px 0 16px;
    color: #12213a;
    font-size: clamp(2.15rem, 4.5vw, 3.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.password-lead {
    max-width: 610px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
}

.process-card {
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid rgba(198, 211, 228, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(28, 48, 80, 0.08);
    backdrop-filter: blur(12px);
}

.process-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6edf6;
    color: #273a56;
    font-size: 0.82rem;
    font-weight: 800;
}

.process-time {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.process-list {
    display: grid;
    padding: 10px 18px 14px;
}

.process-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 67px;
    color: #8391a5;
}

.process-item:not(:last-child)::after {
    position: absolute;
    top: 47px;
    bottom: -20px;
    left: 16px;
    width: 2px;
    background: #dde6f1;
    content: "";
}

.process-item.is-complete:not(:last-child)::after {
    background: #9bd7c4;
}

.process-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #d9e3ef;
    border-radius: 50%;
    background: #f8fbff;
    color: #8a9ab0;
    font-size: 0.95rem;
}

.process-item.is-active .process-number {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(30, 94, 255, 0.24);
}

.process-item.is-complete .process-number {
    border-color: #c2eadc;
    background: #e9f8f2;
    color: var(--success);
}

.process-item strong,
.process-item small {
    display: block;
}

.process-item strong {
    color: #65758d;
    font-size: 0.88rem;
    font-weight: 800;
}

.process-item.is-active strong,
.process-item.is-complete strong {
    color: #20324d;
}

.process-item small {
    margin-top: 3px;
    font-size: 0.77rem;
}

.security-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid #d7e5fb;
    border-radius: 14px;
    background: rgba(238, 245, 255, 0.76);
}

.security-note-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: #dfeaff;
    color: #1f5bd8;
}

.security-note strong {
    display: block;
    margin-bottom: 3px;
    color: #203653;
    font-size: 0.84rem;
}

.security-note p {
    color: #5e708a;
    font-size: 0.78rem;
    line-height: 1.55;
}

.password-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(202, 215, 231, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(24, 45, 78, 0.14);
    backdrop-filter: blur(14px);
}

.password-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #1e5eff 0%, #3d82f6 55%, #16a47b 100%);
}

.password-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid #e8eef6;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.card-eyebrow {
    color: #6c7d94;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.password-card-title {
    color: #172b47;
    font-size: 1.18rem;
    font-weight: 800;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #bfe4d7;
    border-radius: 999px;
    background: #edf9f5;
    color: #117257;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.password-card-body {
    padding: 28px;
}

.app-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin-bottom: 22px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.app-alert > i {
    margin-top: 1px;
    font-size: 1rem;
}

.app-alert strong,
.app-alert span {
    display: block;
}

.app-alert strong {
    margin-bottom: 2px;
    font-size: 0.82rem;
}

.app-alert span {
    line-height: 1.5;
}

.form-intro {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

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

.password-form .form-label {
    margin-bottom: 8px;
}

.premium-input {
    overflow: hidden;
    border: 1px solid #d4dfec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(28, 48, 80, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.premium-input:focus-within {
    border-color: #8db1ff;
    box-shadow: 0 0 0 0.22rem rgba(30, 94, 255, 0.11), 0 8px 18px rgba(28, 48, 80, 0.07);
}

.premium-input .input-group-text,
.premium-input .form-control,
.premium-input .btn {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.premium-input .input-group-text {
    padding-right: 4px;
    padding-left: 16px;
    color: var(--primary);
}

.premium-input .form-control {
    min-width: 0;
    padding: 13px 12px;
    color: #172b47;
    font-size: 0.95rem;
    box-shadow: none;
}

.premium-input .form-control::placeholder {
    color: #9aa8ba;
}

.premium-input .password-toggle {
    min-width: 48px;
    border-left: 1px solid #e2e9f2;
    color: #667990;
}

.premium-input .password-toggle:hover,
.premium-input .password-toggle:focus {
    background: #f1f6ff;
    color: #1e5eff;
}

.premium-input:has(.form-control.is-invalid) {
    border-color: #dc3545;
}

.field-security {
    color: #718198;
    font-size: 0.7rem;
    font-weight: 700;
}

.field-security i {
    color: #168a65;
}

.submit-button {
    min-height: 54px;
    margin-top: 2px;
    border-radius: 11px;
    font-size: 0.94rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(30, 94, 255, 0.24);
}

.submit-button:disabled {
    cursor: wait;
}

.form-security-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8eef6;
    color: #708198;
    font-size: 0.72rem;
    font-weight: 700;
}

.form-security-footer i {
    margin-right: 3px;
    color: #168a65;
}

.identity-strip {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dce7f4;
    border-radius: 13px;
    background: #f8fbff;
}

.identity-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #17335f;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 9px 18px rgba(23, 51, 95, 0.18);
}

.identity-copy span,
.identity-copy strong,
.identity-copy small {
    display: block;
}

.identity-copy span {
    color: #168a65;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.identity-copy strong {
    overflow: hidden;
    margin-top: 2px;
    color: #1d304c;
    font-size: 0.91rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-copy small {
    margin-top: 2px;
    color: #74849a;
    font-size: 0.73rem;
}

.session-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 78px;
    justify-content: center;
    padding: 7px 9px;
    border: 1px solid #d7e4f5;
    border-radius: 9px;
    background: #fff;
    color: #395577;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.session-countdown.is-expiring {
    border-color: #ffd7a0;
    background: #fff9ef;
    color: #a45b0a;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
}

.detail-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e3ebf5;
    border-radius: 11px;
    background: #fff;
}

.detail-item i {
    color: #1e5eff;
    font-size: 0.95rem;
}

.detail-item span,
.detail-item strong {
    display: block;
}

.detail-item span {
    margin-top: 7px;
    color: #7b8ba0;
    font-size: 0.67rem;
    font-weight: 700;
}

.detail-item strong {
    overflow: hidden;
    margin-top: 3px;
    color: #263a56;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-panel {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e1e9f3;
    border-radius: 12px;
}

.device-panel-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 0;
    background: #f8fbff;
    color: #304764;
    font-size: 0.77rem;
    font-weight: 800;
    text-align: left;
}

.device-panel-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.device-panel-toggle .bi-chevron-down {
    display: inline-block;
    transition: transform 0.2s ease;
}

.device-count {
    flex: 0 0 auto;
    color: #168a65;
}

.device-list {
    display: grid;
    gap: 1px;
    border-top: 1px solid #e7eef6;
    background: #e7eef6;
}

.device-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 13px;
    background: #fff;
}

.device-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #edf4ff;
    color: #1e5eff;
}

.device-copy strong,
.device-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-copy strong {
    color: #293d58;
    font-size: 0.77rem;
}

.device-copy small,
.device-uptime {
    color: #7c8da3;
    font-size: 0.67rem;
}

.device-uptime {
    font-weight: 700;
}

.empty-device {
    padding: 13px;
    background: #fff;
    color: #7c8da3;
    font-size: 0.75rem;
}

.strength-wrap {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 9px;
    color: #7a8b9f;
    font-size: 0.68rem;
    font-weight: 700;
}

.strength-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.strength-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #e8505b;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.strength-track span[data-level="medium"] {
    background: #e89a2e;
}

.strength-track span[data-level="strong"] {
    background: #16a47b;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: #8997a9;
    font-size: 0.67rem;
    font-weight: 700;
}

.password-rules span.is-valid {
    color: #168a65;
}

.match-feedback {
    min-height: 18px;
    margin-top: 7px;
    font-size: 0.69rem;
    font-weight: 700;
}

.match-feedback.is-match {
    color: #168a65;
}

.match-feedback.is-mismatch {
    color: #c2414d;
}

.change-impact {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 12px 13px;
    border: 1px solid #d9e7fb;
    border-radius: 11px;
    background: #f3f7ff;
    color: #536a88;
    font-size: 0.72rem;
    line-height: 1.55;
}

.change-impact i {
    margin-top: 1px;
    color: #1e5eff;
}

.change-customer-button {
    color: #63758d;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.change-customer-button:hover {
    color: #1e5eff;
}

.password-footer {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    .password-hero {
        padding: 42px 0 48px;
    }

    .password-copy {
        position: static;
    }

    .password-title {
        max-width: 760px;
    }

    .process-card {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .password-hero {
        padding: 28px 0 36px;
    }

    .password-title {
        margin-top: 14px;
        font-size: 2.05rem;
    }

    .password-lead {
        font-size: 0.92rem;
    }

    .password-card {
        border-radius: 14px;
    }

    .password-card-header,
    .password-card-body {
        padding: 20px;
    }

    .password-card-header {
        align-items: flex-start;
    }

    .verified-badge {
        padding: 6px 8px;
        font-size: 0.67rem;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .process-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .password-card-header {
        display: grid;
    }

    .verified-badge {
        justify-self: start;
    }

    .identity-strip {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .identity-avatar {
        width: 42px;
        height: 42px;
    }

    .session-countdown {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-item:last-child {
        grid-column: auto;
    }

    .strength-wrap {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .submit-button,
    .strength-track span,
    .device-panel-toggle .bi-chevron-down {
        transition: none;
    }
}
