/* Modern password change UI for account.php. */

#password-section.password-dashboard {
    --password-brand: #078b54;
    --password-brand-dark: #056b41;
    --password-brand-soft: #edf9f3;
    --password-ink: #17251e;
    --password-muted: #748179;
    --password-border: #e1e9e4;
    --password-surface: #fff;
    --password-shadow: 0 12px 30px rgba(26,61,43,.07);
    color: var(--password-ink);
}

#password-section .password-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 23px 25px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg,#057447 0%,#0a9258 58%,#13a667 100%);
    box-shadow: 0 16px 38px rgba(7,139,84,.16);
}

#password-section .password-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.14);
    font-size: 22px;
}

#password-section .password-hero-copy {
    min-width: 0;
    flex: 1;
}

#password-section .password-eyebrow {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .75px;
    text-transform: uppercase;
    opacity: .84;
}

#password-section .password-hero h4 {
    margin: 0 0 4px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.35px;
}

#password-section .password-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.5;
}

#password-section .password-hero-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

#password-section .password-layout {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(230px,.65fr);
    gap: 16px;
    align-items: start;
}

#password-section .password-panel {
    padding: 21px;
    border: 1px solid var(--password-border);
    border-radius: 18px;
    background: var(--password-surface);
    box-shadow: var(--password-shadow);
}

#password-section .password-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}

#password-section .password-panel-kicker {
    color: var(--password-brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .75px;
    text-transform: uppercase;
}

#password-section .password-panel-heading h5 {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.2px;
}

#password-section .password-panel-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--password-brand);
    background: var(--password-brand-soft);
}

#password-section .password-form {
    display: grid;
    gap: 14px;
}

#password-section .password-field label {
    display: block;
    margin-bottom: 6px;
    color: #425249;
    font-size: 10px;
    font-weight: 750;
}

#password-section .password-field label span {
    color: #d44e4e;
}

#password-section .password-input-wrap {
    position: relative;
}

#password-section .password-input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 2;
    width: 16px;
    color: #87948d;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

#password-section .password-input-wrap .form-control {
    min-height: 46px;
    padding-left: 39px;
    padding-right: 46px;
    border: 1px solid #dce6e0;
    border-radius: 11px;
    color: #26372e;
    background: #fff;
    box-shadow: none;
}

#password-section .password-input-wrap .form-control:focus {
    border-color: #66b691;
    box-shadow: 0 0 0 3px rgba(7,139,84,.09);
}

#password-section .password-input-wrap .form-control.is-invalid {
    border-color: #d55c5c;
    box-shadow: 0 0 0 3px rgba(213,92,92,.08);
    background-image: none;
}

#password-section .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #7e8c84;
    background: transparent;
    transform: translateY(-50%);
}

#password-section .password-toggle:hover,
#password-section .password-toggle:focus {
    color: var(--password-brand);
    background: #f1f8f4;
}

#password-section .password-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #87938c;
    font-size: 8px;
    font-weight: 650;
}

#password-section .password-rule i {
    font-size: 6px;
}

#password-section .password-rule.is-valid {
    color: #078b54;
}

#password-section .password-rule.is-invalid {
    color: #b54b4b;
}

#password-section .password-form-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 10px;
    color: #6f766d;
    background: #fff8e8;
    font-size: 9px;
    line-height: 1.5;
}

#password-section .password-form-note i {
    margin-top: 2px;
    color: #aa7a19;
}

#password-section .password-submit-btn {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--password-brand);
    border-radius: 10px;
    color: #fff;
    background: var(--password-brand);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(7,139,84,.14);
}

#password-section .password-submit-btn:hover {
    color: #fff;
    border-color: var(--password-brand-dark);
    background: var(--password-brand-dark);
}

#password-section .password-submit-btn:disabled {
    opacity: .65;
    box-shadow: none;
}

#password-section .password-security-panel {
    padding: 18px;
    border: 1px solid #dce8e1;
    border-radius: 18px;
    background: linear-gradient(145deg,#fbfefc,#f3faf6);
    box-shadow: 0 10px 26px rgba(26,61,43,.05);
}

#password-section .password-security-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 14px;
    color: var(--password-brand);
    background: var(--password-brand-soft);
    font-size: 19px;
}

#password-section .password-security-kicker {
    display: block;
    color: var(--password-brand);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .55px;
    text-transform: uppercase;
}

#password-section .password-security-panel h5 {
    margin: 3px 0 13px;
    color: #304239;
    font-size: 14px;
    font-weight: 800;
}

#password-section .password-security-list {
    display: grid;
    gap: 10px;
}

#password-section .password-security-list > div {
    display: grid;
    grid-template-columns: 23px minmax(0,1fr);
    gap: 8px;
    align-items: start;
}

#password-section .password-security-list i {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--password-brand);
    background: #e7f7ef;
    font-size: 8px;
}

#password-section .password-security-list span {
    color: #697870;
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    #password-section .password-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #password-section .password-hero {
        align-items: flex-start;
        gap: 12px;
        padding: 18px 16px;
        border-radius: 17px;
    }

    #password-section .password-hero-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        font-size: 19px;
    }

    #password-section .password-hero h4 {
        font-size: 20px;
    }

    #password-section .password-hero p {
        font-size: 11px;
    }

    #password-section .password-hero-badge {
        display: none;
    }

    #password-section .password-panel,
    #password-section .password-security-panel {
        padding: 16px;
        border-radius: 16px;
    }

    #password-section .password-input-wrap .form-control {
        min-height: 45px;
        font-size: 13px;
    }

    #password-section .password-submit-btn {
        min-height: 44px;
    }
}
