﻿:root {
    --password-primary: #087fc3;
    --password-primary-dark: #064a7d;
    --password-primary-deep: #063d6a;
    --password-text: #073f6c;
    --password-muted: #7f91a5;
    --password-border: #d5e3ef;
    --password-background: #f4f9fd;
    --password-danger: #e63946;
    --password-success: #15a46d;
    --password-warning: #f0a321;
}

.password-page {
    min-height: 100vh;
    background: radial-gradient( circle at 5% 20%, rgba(8, 127, 195, 0.08), transparent 26% ), #f5faff;
    color: var(--password-text);
    font-family: inherit;
}

    .password-page .container {
        width: min(1320px, calc(100% - 40px));
        margin: 0 auto;
    }


/* Hero */

.password-hero {
    min-height: 265px;
    padding: 50px 0 85px;
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 90% 25%, rgba(255,255,255,0.11), transparent 19% ), linear-gradient( 115deg, #075382 0%, #0876b6 48%, #1598d5 100% );
}

    .password-hero::before {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        right: -80px;
        top: -130px;
        border-radius: 50%;
        border: 45px solid rgba(255,255,255,0.04);
    }

    .password-hero::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        left: -80px;
        bottom: -130px;
        border-radius: 50%;
        border: 35px solid rgba(255,255,255,0.035);
    }

.password-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

.password-hero-icon {
    width: 105px;
    height: 105px;
    flex: 0 0 105px;
    border-radius: 25px;
    background: rgba(255,255,255,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0871b6;
    font-size: 46px;
    box-shadow: 0 18px 38px rgba(0, 47, 89, 0.22);
    position: relative;
}

    .password-hero-icon span {
        width: 35px;
        height: 35px;
        position: absolute;
        right: 13px;
        bottom: 12px;
        border-radius: 50%;
        border: 4px solid #fff;
        background: #0c80c7;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

.password-hero-text {
    color: #fff;
}

.password-breadcrumb {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

    .password-breadcrumb a,
    .password-breadcrumb span {
        color: rgba(255,255,255,0.87);
        text-decoration: none;
    }

        .password-breadcrumb a:hover {
            color: #fff;
        }

    .password-breadcrumb i {
        font-size: 9px;
        color: rgba(255,255,255,0.65);
    }

.password-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 800;
}

.password-hero p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 18px;
}


/* Card */

.password-content-container {
    position: relative;
    z-index: 5;
    margin-top: -58px !important;
    padding-bottom: 70px;
}

.password-card {
    overflow: hidden;
    border: 1px solid rgba(205, 222, 235, 0.85);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(22, 84, 124, 0.13);
}

.password-card-body {
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: 55px;
    align-items: stretch;
}


/* Security tips */

.security-tips {
    padding: 38px 30px;
    border: 1px solid #d7e8f5;
    border-radius: 20px;
    background: linear-gradient( 145deg, #f8fcff, #edf7ff );
}

.security-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #dcefff;
    color: #0878bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 12px 25px rgba(10, 117, 184, 0.12);
}

.security-tips h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #07518a;
}

.security-tips > p {
    margin: 0 0 27px;
    text-align: center;
    color: #74899f;
    line-height: 1.8;
    font-size: 14px;
}

.security-tips ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.security-tips li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    color: #60758c;
    font-size: 14px;
}

    .security-tips li i {
        color: #1689cf;
        font-size: 17px;
    }


/* Form */

.password-form-wrapper {
    padding: 7px 0;
}

.password-field-group {
    margin-bottom: 27px;
}

    .password-field-group label {
        display: block;
        margin-bottom: 10px;
        color: #153f62;
        font-size: 15px;
        font-weight: 700;
    }

        .password-field-group label span {
            color: var(--password-danger);
            margin-right: 3px;
        }

.password-input-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    min-height: 61px;
    padding: 0 19px 0 60px;
    border: 1px solid #ceddea;
    border-radius: 12px;
    background: #fff;
    color: #183d5d;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    text-align: left;
}

    .password-input::placeholder {
        color: #a1afbf;
    }

    .password-input:hover {
        border-color: #adcce2;
    }

    .password-input:focus {
        border-color: #1387cc;
        box-shadow: 0 0 0 4px rgba(19, 135, 204, 0.11);
    }

.input-validation-error {
    border-color: #e76973 !important;
    background: #fffafb;
}

.toggle-password {
    width: 52px;
    height: 100%;
    position: absolute;
    left: 4px;
    top: 0;
    border: 0;
    background: transparent;
    color: #778ba2;
    font-size: 19px;
    cursor: pointer;
}

    .toggle-password:hover {
        color: #087bbf;
    }

.field-validation-message {
    display: block;
    min-height: 19px;
    margin-top: 6px;
    color: #df3f4d;
    font-size: 13px;
}

.field-validation-valid {
    display: none;
}

.form-validation-summary {
    margin-bottom: 24px;
}

    .form-validation-summary ul {
        margin: 0;
        padding: 15px 42px 15px 20px;
        border: 1px solid #ffd4d8;
        border-radius: 12px;
        background: #fff6f7;
        color: #d43243;
    }

.validation-summary-valid {
    display: none;
}


/* Password strength */

.password-strength {
    margin-top: 13px;
}

.password-strength-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #77899c;
    font-size: 13px;
}

    .password-strength-header strong {
        font-weight: 700;
    }

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

    .password-strength-bars span {
        height: 5px;
        border-radius: 20px;
        background: #e1e8ef;
        transition: .25s ease;
    }

.password-strength.level-1
.password-strength-bars span:nth-child(1) {
    background: #ef4352;
}

.password-strength.level-2
.password-strength-bars span:nth-child(-n+2) {
    background: #f1a52c;
}

.password-strength.level-3
.password-strength-bars span:nth-child(-n+3) {
    background: #25a9a0;
}

.password-strength.level-4
.password-strength-bars span:nth-child(-n+4) {
    background: #16a66c;
}


/* Requirements */

.password-requirements {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
}

.requirement-item {
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8292a3;
    font-size: 12px;
}

    .requirement-item i {
        font-size: 13px;
    }

    .requirement-item.valid {
        color: #169b68;
    }

        .requirement-item.valid i::before {
            content: "\f058";
        }


/* Match message */

.password-match-message {
    min-height: 18px;
    margin-top: 7px;
    font-size: 13px;
}

    .password-match-message.success {
        color: #149966;
    }

    .password-match-message.error {
        color: #df3f4d;
    }


/* Actions */

.password-form-actions {
    margin-top: 36px;
    padding-top: 27px;
    border-top: 1px solid #ebf0f4;
    display: flex;
    align-items: center;
    gap: 15px;
}

.change-password-button,
.cancel-password-button {
    min-height: 57px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.change-password-button {
    min-width: 330px;
    padding: 0 27px;
    border: 0;
    background: linear-gradient( 100deg, #0869b7, #0753a1 );
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    box-shadow: 0 12px 25px rgba(7, 89, 164, 0.23);
    cursor: pointer;
}

    .change-password-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(7, 89, 164, 0.29);
    }

    .change-password-button:disabled {
        opacity: .72;
        cursor: wait;
        transform: none;
    }

.button-loading {
    display: none;
}

.change-password-button.loading
.button-icon,
.change-password-button.loading
.button-text {
    display: none;
}

.change-password-button.loading
.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cancel-password-button {
    min-width: 170px;
    padding: 0 25px;
    border: 1px solid #cbdbe7;
    background: #fff;
    color: #315b7b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .cancel-password-button:hover {
        border-color: #0b7fc5;
        color: #0874b5;
        background: #f7fcff;
    }


/* Alerts */

.password-alert {
    margin: 28px 45px 0;
    padding: 17px 20px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.password-alert-success {
    border: 1px solid #bcebd7;
    background: #effcf7;
    color: #126e4e;
}

.password-alert-icon {
    font-size: 25px;
}

.password-alert strong {
    display: block;
    margin-bottom: 3px;
}

.password-alert p {
    margin: 0;
    color: inherit;
    font-size: 14px;
}

.password-alert-close {
    margin-right: auto;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
}


/* Responsive */

@media (max-width: 992px) {
    .password-card-body {
        grid-template-columns: 1fr;
        padding: 38px;
    }

    .security-tips {
        order: 2;
    }

    .password-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .password-page .container {
        width: min(100% - 24px, 1320px);
    }

    .password-hero {
        min-height: 255px;
        padding-top: 35px;
    }

    .password-hero-content {
        align-items: flex-start;
    }

    .password-hero-icon {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 19px;
        font-size: 33px;
    }

        .password-hero-icon span {
            width: 28px;
            height: 28px;
            right: 6px;
            bottom: 7px;
            border-width: 3px;
            font-size: 11px;
        }

    .password-hero h1 {
        font-size: 30px;
    }

    .password-hero p {
        font-size: 15px;
    }

    .password-card-body {
        padding: 27px 20px;
        gap: 28px;
    }

    .password-form-actions {
        flex-direction: column;
    }

    .change-password-button,
    .cancel-password-button {
        width: 100%;
        min-width: 0;
    }

    .password-alert {
        margin: 20px 20px 0;
    }
}

@media (max-width: 520px) {
    .password-hero-content {
        gap: 15px;
    }

    .password-breadcrumb {
        font-size: 12px;
        gap: 8px;
    }

    .password-hero h1 {
        font-size: 25px;
    }

    .password-content-container {
        margin-top: -40px !important;
    }

    .password-card {
        border-radius: 18px;
    }

    .security-tips {
        padding: 28px 19px;
    }

    .password-requirements {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .requirement-item {
        min-width: 0;
    }
}
