/* ==========================================================
   GUIDANCE ACCOUNT SETTINGS
   ========================================================== */


:root {

    --settings-primary:
        #182653;

    --settings-primary-light:
        #eef1fa;

    --settings-text:
        #1d2440;

    --settings-muted:
        #7b8296;

    --settings-border:
        #e7e9f0;

    --settings-background:
        #f7f8fc;

    --settings-white:
        #ffffff;

    --settings-success:
        #218838;

    --settings-success-bg:
        #eaf7ef;

    --settings-danger:
        #c73d4d;

    --settings-danger-bg:
        #fff0f1;

}


/* ==========================================================
   MAIN PAGE LAYOUT
   ========================================================== */

.page-wrapper {

    min-height: 100vh;

    margin-left: 275px;

    width:
        calc(
            100% - 275px
        );

    box-sizing: border-box;

}


/* ==========================================================
   SETTINGS PAGE
   ========================================================== */

.settings-page {

    min-height:
        calc(
            100vh - 80px
        );

    padding: 30px;

    box-sizing: border-box;

    background:
        var(--settings-background);

}


/* ==========================================================
   PAGE HEADER
   ========================================================== */

.settings-header {

    max-width: 1200px;

    margin-bottom: 25px;

}


.settings-eyebrow {

    display: block;

    margin-bottom: 6px;

    color: #6d7390;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


.settings-header h1 {

    margin: 0;

    color:
        var(--settings-text);

    font-size: 28px;

    font-weight: 750;

    line-height: 1.2;

}


.settings-header p {

    margin:
        7px 0 0;

    color:
        var(--settings-muted);

    font-size: 14px;

    line-height: 1.5;

}


/* ==========================================================
   ALERTS
   ========================================================== */

.settings-alert {

    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    max-width: 1200px;

    margin-bottom: 20px;

    padding:
        13px
        45px
        13px
        15px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.4;

}


.settings-alert.success {

    color:
        var(--settings-success);

    background:
        var(--settings-success-bg);

    border:
        1px solid #c9ead6;

}


.settings-alert.error {

    color:
        var(--settings-danger);

    background:
        var(--settings-danger-bg);

    border:
        1px solid #f1cbcf;

}


.alert-close {

    position: absolute;

    top: 50%;

    right: 9px;

    width: 30px;

    height: 30px;

    transform:
        translateY(-50%);

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: inherit;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

}


.alert-close:hover {

    background:
        rgba(
            0,
            0,
            0,
            0.05
        );

}


/* ==========================================================
   MAIN GRID
   ========================================================== */

.settings-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 22px;

    max-width: 1200px;

}


/* ==========================================================
   CARD
   ========================================================== */

.settings-card {

    min-width: 0;

    padding: 24px;

    background:
        var(--settings-white);

    border:
        1px solid
        var(--settings-border);

    border-radius: 16px;

    box-shadow:
        0
        8px
        30px
        rgba(
            24,
            38,
            83,
            0.05
        );

}


.security-card {

    grid-column: 1 / -1;

}


/* ==========================================================
   CARD HEADER
   ========================================================== */

.card-header {

    display: flex;

    align-items: center;

    gap: 13px;

    padding-bottom: 20px;

    border-bottom:
        1px solid #eef0f5;

}


.card-icon {

    width: 43px;

    height: 43px;

    flex:
        0 0 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        var(--settings-primary-light);

    color:
        var(--settings-primary);

    font-size: 17px;

}


.card-header h2 {

    margin: 0;

    color:
        var(--settings-text);

    font-size: 17px;

    font-weight: 700;

}


.card-header p {

    margin:
        4px 0 0;

    color:
        var(--settings-muted);

    font-size: 12px;

    line-height: 1.4;

}


/* ==========================================================
   ACCOUNT PROFILE
   ========================================================== */

.account-profile {

    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        22px 0;

}


.large-avatar {

    width: 65px;

    height: 65px;

    flex:
        0 0 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #dfe4f2;

    color:
        var(--settings-primary);

    font-size: 19px;

    font-weight: 800;

    overflow: hidden;

}


/* ==========================================================
   SETTINGS PROFILE IMAGE
   ========================================================== */

.settings-profile-image {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

}


.account-profile h3 {

    margin:
        0 0 7px;

    color:
        var(--settings-text);

    font-size: 18px;

    font-weight: 700;

}


.role-badge {

    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding:
        0 10px;

    border-radius: 20px;

    background: #f1edfa;

    color: #6338a3;

    font-size: 11px;

    font-weight: 700;

}


/* ==========================================================
   ACCOUNT INFORMATION
   ========================================================== */

.information-list {

    border-top:
        1px solid #f0f1f5;

}


.information-row {

    min-height: 51px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid #f0f1f5;

}


.information-label {

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        var(--settings-muted);

    font-size: 13px;

}


.information-label i {

    width: 17px;

    color: #8a90a4;

    text-align: center;

}


.information-row strong {

    color:
        var(--settings-text);

    font-size: 13px;

    font-weight: 600;

    text-align: right;

    overflow-wrap: anywhere;

}


/* ==========================================================
   ACCOUNT STATUS
   ========================================================== */

.status-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 12px;

    font-weight: 600;

}


.status-badge > span {

    width: 7px;

    height: 7px;

    flex:
        0 0 7px;

    border-radius: 50%;

}


.status-badge.active {

    color:
        var(--settings-success);

}


.status-badge.active > span {

    background:
        var(--settings-success);

}


.status-badge.inactive {

    color:
        var(--settings-danger);

}


.status-badge.inactive > span {

    background:
        var(--settings-danger);

}


/* ==========================================================
   PASSWORD FORM
   ========================================================== */

.password-card form {

    padding-top: 21px;

}


.form-group {

    margin-bottom: 19px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #333a53;

    font-size: 13px;

    font-weight: 650;

}


/* ==========================================================
   PASSWORD INPUT
   ========================================================== */

.password-wrapper {

    position: relative;

}


.password-wrapper input {

    width: 100%;

    height: 46px;

    box-sizing: border-box;

    padding:
        0
        45px
        0
        13px;

    border:
        1px solid #dfe2ea;

    border-radius: 9px;

    background: #ffffff;

    color:
        var(--settings-text);

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.password-wrapper input::placeholder {

    color: #a1a6b4;

}


.password-wrapper input:hover {

    border-color: #cbd0dc;

}


.password-wrapper input:focus {

    border-color: #6574aa;

    box-shadow:
        0
        0
        0
        3px
        rgba(
            101,
            116,
            170,
            0.10
        );

}


/* ==========================================================
   PASSWORD TOGGLE
   ========================================================== */

.password-toggle {

    position: absolute;

    top: 50%;

    right: 5px;

    width: 36px;

    height: 36px;

    transform:
        translateY(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #858b9d;

    cursor: pointer;

}


.password-toggle:hover {

    background: #f2f3f7;

    color:
        var(--settings-primary);

}


.password-toggle:focus-visible {

    outline:
        2px solid #6574aa;

    outline-offset: 1px;

}


/* ==========================================================
   FIELD HELP
   ========================================================== */

.field-help {

    display: block;

    margin-top: 6px;

    color: #9298a8;

    font-size: 11px;

    line-height: 1.5;

}


/* ==========================================================
   PASSWORD STRENGTH
   ========================================================== */

.password-strength {

    width: 100%;

    height: 4px;

    margin-top: 7px;

    border-radius: 10px;

    background: transparent;

    transition:
        background 0.2s ease;

}


.password-strength.weak {

    background: #d9534f;

}


.password-strength.medium {

    background: #e4a11b;

}


.password-strength.strong {

    background: #36a269;

}


/* ==========================================================
   PASSWORD MATCH
   ========================================================== */

.match-message {

    display: block;

    min-height: 16px;

    margin-top: 6px;

    font-size: 11px;

    line-height: 1.4;

}


.match-message.match {

    color:
        var(--settings-success);

}


.match-message.no-match {

    color:
        var(--settings-danger);

}


/* ==========================================================
   PASSWORD REQUIREMENTS
   ========================================================== */

.password-requirements {

    padding: 14px;

    margin-top: 3px;

    margin-bottom: 20px;

    border:
        1px solid #eceef4;

    border-radius: 10px;

    background: #f8f9fc;

}


.password-requirements strong {

    display: block;

    margin-bottom: 9px;

    color: #424961;

    font-size: 12px;

    font-weight: 700;

}


.password-requirements ul {

    margin: 0;

    padding: 0;

    list-style: none;

}


.password-requirements li {

    display: flex;

    align-items: center;

    gap: 7px;

    margin: 6px 0;

    color: #9298a8;

    font-size: 11px;

    line-height: 1.4;

}


.password-requirements li i {

    width: 10px;

    flex:
        0 0 10px;

    color: #a5aab8;

    font-size: 5px;

    text-align: center;

}


.password-requirements li.valid {

    color:
        var(--settings-success);

}


.password-requirements li.valid i {

    color:
        var(--settings-success);

    font-size: 9px;

}


/* ==========================================================
   CHANGE PASSWORD BUTTON
   ========================================================== */

.change-password-button {

    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 9px;

    background:
        var(--settings-primary);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;

}


.change-password-button:hover {

    opacity: 0.94;

    box-shadow:
        0
        5px
        15px
        rgba(
            24,
            38,
            83,
            0.15
        );

}


.change-password-button:active {

    transform:
        translateY(1px);

}


.change-password-button:disabled {

    opacity: 0.55;

    cursor: not-allowed;

    box-shadow: none;

}


/* ==========================================================
   SECURITY
   ========================================================== */

.security-list {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;

    padding-top: 20px;

}


.security-row {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    border:
        1px solid #eceef4;

    border-radius: 11px;

    background: #fafbfc;

}


.security-row-icon {

    width: 37px;

    height: 37px;

    flex:
        0 0 37px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        var(--settings-primary-light);

    color:
        var(--settings-primary);

    font-size: 14px;

}


.security-row > div:last-child {

    min-width: 0;

}


.security-row span {

    display: block;

    margin-bottom: 4px;

    color: #9298a8;

    font-size: 11px;

}


.security-row strong {

    display: block;

    color: #30374f;

    font-size: 12px;

    font-weight: 650;

    overflow-wrap: anywhere;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {


    .settings-grid {

        grid-template-columns: 1fr;

    }


    .security-card {

        grid-column: auto;

    }


    .security-list {

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );

    }

}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 992px) {


    .page-wrapper {

        width: 100%;

        margin-left: 0;

    }


    .settings-page {

        width: 100%;

        min-width: 0;

    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {


    .settings-page {

        padding:
            24px
            20px;

    }


    .security-list {

        grid-template-columns: 1fr;

    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 600px) {


    .settings-page {

        padding:
            20px
            15px;

    }


    .settings-header h1 {

        font-size: 24px;

    }


    .settings-header p {

        font-size: 13px;

    }


    .settings-card {

        padding: 18px;

        border-radius: 13px;

    }


    .card-header {

        padding-bottom: 16px;

    }


    .card-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

    }


    .account-profile {

        align-items: flex-start;

    }


    .large-avatar {

        width: 55px;

        height: 55px;

        flex-basis: 55px;

    }


    .account-profile h3 {

        font-size: 16px;

    }


    .information-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

        padding:
            12px 0;

    }


    .information-row strong {

        text-align: left;

    }


    .security-row {

        padding: 14px;

    }

}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {


    .settings-page {

        padding:
            16px
            12px;

    }


    .settings-card {

        padding: 15px;

    }


    .card-header h2 {

        font-size: 15px;

    }


    .card-header p {

        font-size: 11px;

    }


    .account-profile {

        gap: 10px;

    }

}