/*
|--------------------------------------------------------------------------
| AvaSutra Authentication
|--------------------------------------------------------------------------
|
| Shared styles for:
|
| login.php
| register.php
| forgot-password.php
|
*/


/*
|--------------------------------------------------------------------------
| Root
|--------------------------------------------------------------------------
*/

:root {
    --ava-primary: #315f72;
    --ava-primary-dark: #234958;
    --ava-primary-soft: #eaf2f5;

    --ava-accent: #5d8b7e;

    --ava-text: #17252c;
    --ava-muted: #6b7b83;

    --ava-border: #dce5e9;
    --ava-surface: #ffffff;

    --ava-brand-bg-1: #173945;
    --ava-brand-bg-2: #295b68;
}


/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    background:
        #f7f9fa;

    color:
        var(--ava-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/*
|--------------------------------------------------------------------------
| Main Shell
|--------------------------------------------------------------------------
*/

.auth-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 46%)
        minmax(480px, 54%);
}


/*
|--------------------------------------------------------------------------
| Brand Panel
|--------------------------------------------------------------------------
*/

.auth-brand-panel {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--ava-brand-bg-1) 0%,
            var(--ava-brand-bg-2) 100%
        );

    color:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| Decorative Background
|--------------------------------------------------------------------------
*/

.auth-brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -160px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}


.auth-brand-panel::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    bottom: -150px;
    left: -130px;

    border-radius: 50%;

    border:
        60px solid
        rgba(
            255,
            255,
            255,
            0.035
        );
}


/*
|--------------------------------------------------------------------------
| Brand Inner
|--------------------------------------------------------------------------
*/

.auth-brand-inner {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    max-width: 660px;

    padding:
        46px
        clamp(
            36px,
            6vw,
            82px
        );
}


/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.auth-brand {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    width: fit-content;

    color:
        #ffffff;
}


.auth-brand:hover {
    color:
        #ffffff;
}


.auth-logo-mark {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            0.13
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    box-shadow:
        0
        8px
        24px
        rgba(
            0,
            0,
            0,
            0.1
        );

    font-size: 1.35rem;

    font-weight: 800;

    letter-spacing:
        -0.04em;
}


.auth-brand-name {
    color:
        inherit;

    font-size:
        1.35rem;

    line-height:
        1.15;

    font-weight:
        750;

    letter-spacing:
        -0.02em;
}


.auth-brand-tagline {
    margin-top:
        2px;

    color:
        rgba(
            255,
            255,
            255,
            0.67
        );

    font-size:
        0.76rem;
}


/*
|--------------------------------------------------------------------------
| Brand Content
|--------------------------------------------------------------------------
*/

.auth-brand-content {
    margin:
        auto
        0;
}


.auth-eyebrow {
    margin-bottom:
        16px;

    color:
        rgba(
            255,
            255,
            255,
            0.63
        );

    font-size:
        0.72rem;

    font-weight:
        700;

    letter-spacing:
        0.15em;
}


.auth-brand-heading {
    max-width:
        540px;

    margin-bottom:
        18px;

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.6rem
        );

    line-height:
        1.04;

    font-weight:
        750;

    letter-spacing:
        -0.045em;
}


.auth-brand-description {
    max-width:
        535px;

    margin-bottom:
        32px;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size:
        1rem;

    line-height:
        1.65;
}


/*
|--------------------------------------------------------------------------
| Feature List
|--------------------------------------------------------------------------
*/

.auth-feature-list {
    display: grid;

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

    gap:
        13px;
}


.auth-feature-item {
    display: flex;

    gap:
        12px;

    align-items:
        flex-start;

    padding:
        14px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );

    border-radius:
        13px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    color:
        rgba(
            255,
            255,
            255,
            0.94
        );
}


.auth-feature-item .small {
    margin-top:
        3px;

    color:
        rgba(
            255,
            255,
            255,
            0.6
        );

    line-height:
        1.4;
}


.auth-feature-icon {
    width: 34px;
    height: 34px;

    flex:
        0
        0
        34px;

    display:
        inline-flex;

    align-items:
        center;
    justify-content:
        center;

    border-radius:
        10px;

    background:
        rgba(
            255,
            255,
            255,
            0.11
        );

    color:
        #ffffff;

    font-size:
        0.95rem;
}


/*
|--------------------------------------------------------------------------
| Brand Footer
|--------------------------------------------------------------------------
*/

.auth-brand-footer {
    margin-top:
        32px;

    color:
        rgba(
            255,
            255,
            255,
            0.48
        );

    font-size:
        0.75rem;
}


/*
|--------------------------------------------------------------------------
| Form Panel
|--------------------------------------------------------------------------
*/

.auth-form-panel {
    min-width:
        0;

    display:
        flex;

    align-items:
        center;
    justify-content:
        center;

    padding:
        48px
        28px;

    background:
        var(--ava-surface);
}


/*
|--------------------------------------------------------------------------
| Form Container
|--------------------------------------------------------------------------
*/

.auth-form-wrap {
    width:
        100%;

    max-width:
        430px;
}


/*
|--------------------------------------------------------------------------
| Mobile Brand
|--------------------------------------------------------------------------
*/

.auth-mobile-brand {
    display:
        none;

    align-items:
        center;

    gap:
        11px;

    margin-bottom:
        38px;

    color:
        var(--ava-primary-dark);
}


.auth-mobile-brand
.auth-logo-mark {
    background:
        var(--ava-primary);

    border:
        0;

    color:
        #ffffff;
}


.auth-mobile-brand
.auth-brand-tagline {
    color:
        var(--ava-muted);
}


/*
|--------------------------------------------------------------------------
| Form Header
|--------------------------------------------------------------------------
*/

.auth-form-eyebrow {
    margin-bottom:
        8px;

    color:
        var(--ava-primary);

    font-size:
        0.7rem;

    font-weight:
        800;

    letter-spacing:
        0.14em;
}


.auth-form-title {
    margin-bottom:
        8px;

    color:
        var(--ava-text);

    font-size:
        1.85rem;

    line-height:
        1.15;

    font-weight:
        750;

    letter-spacing:
        -0.03em;
}


.auth-form-subtitle {
    margin:
        0;

    color:
        var(--ava-muted);

    font-size:
        0.93rem;
}


/*
|--------------------------------------------------------------------------
| Labels
|--------------------------------------------------------------------------
*/

.auth-form-wrap
.form-label {
    margin-bottom:
        7px;

    color:
        #33434a;

    font-size:
        0.86rem;
}


/*
|--------------------------------------------------------------------------
| Inputs
|--------------------------------------------------------------------------
*/

.auth-input-group
.input-group-text {
    min-width:
        45px;

    justify-content:
        center;

    border-color:
        var(--ava-border);

    background:
        #f8fafb;

    color:
        #708088;
}


.auth-input-group
.form-control {
    min-height:
        48px;

    border-color:
        var(--ava-border);

    color:
        var(--ava-text);

    font-size:
        0.92rem;
}


.auth-input-group
.form-control::placeholder {
    color:
        #a0acb2;
}


.auth-input-group
.form-control:focus {
    border-color:
        #8eb1bd;

    box-shadow:
        0
        0
        0
        0.2rem
        rgba(
            49,
            95,
            114,
            0.11
        );
}


.auth-input-group:focus-within
.input-group-text {
    border-color:
        #8eb1bd;
}


/*
|--------------------------------------------------------------------------
| Password Toggle
|--------------------------------------------------------------------------
*/

.password-toggle {
    cursor:
        pointer;

    color:
        #75848b;

    transition:
        background-color
        0.15s ease;
}


.password-toggle:hover {
    background:
        #f0f4f6;
}


/*
|--------------------------------------------------------------------------
| Checkbox
|--------------------------------------------------------------------------
*/

.form-check-input:checked {
    border-color:
        var(--ava-primary);

    background-color:
        var(--ava-primary);
}


.form-check-label {
    color:
        #53636a;

    font-size:
        0.86rem;
}


/*
|--------------------------------------------------------------------------
| Links
|--------------------------------------------------------------------------
*/

.auth-form-panel a {
    color:
        var(--ava-primary);
}


.auth-form-panel a:hover {
    color:
        var(--ava-primary-dark);
}


/*
|--------------------------------------------------------------------------
| Primary Button
|--------------------------------------------------------------------------
*/

.auth-primary-button {
    min-height:
        49px;

    border-color:
        var(--ava-primary);

    border-radius:
        9px;

    background:
        var(--ava-primary);

    box-shadow:
        0
        7px
        18px
        rgba(
            49,
            95,
            114,
            0.16
        );

    transition:
        all
        0.18s ease;
}


.auth-primary-button:hover,
.auth-primary-button:focus {
    border-color:
        var(--ava-primary-dark);

    background:
        var(--ava-primary-dark);

    transform:
        translateY(
            -1px
        );
}


/*
|--------------------------------------------------------------------------
| Registration Prompt
|--------------------------------------------------------------------------
*/

.auth-register-box {
    display:
        flex;

    align-items:
        center;
    justify-content:
        space-between;

    gap:
        16px;

    margin-top:
        30px;

    padding:
        16px
        17px;

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

    border-radius:
        12px;

    background:
        #fafcfc;
}


.auth-register-box
.btn-outline-primary {
    --bs-btn-color:
        var(--ava-primary);

    --bs-btn-border-color:
        #9bb5bf;

    --bs-btn-hover-bg:
        var(--ava-primary);

    --bs-btn-hover-border-color:
        var(--ava-primary);
}


/*
|--------------------------------------------------------------------------
| Form Footer
|--------------------------------------------------------------------------
*/

.auth-form-footer {
    margin-top:
        28px;

    text-align:
        center;

    color:
        #8a979d;

    font-size:
        0.75rem;
}


/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.auth-form-wrap
.alert {
    border:
        0;

    border-radius:
        10px;

    font-size:
        0.86rem;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (
    max-width: 1100px
) {

    .auth-shell {
        grid-template-columns:
            minmax(
                360px,
                42%
            )
            minmax(
                450px,
                58%
            );
    }


    .auth-brand-inner {
        padding:
            40px
            34px;
    }


    .auth-feature-list {
        grid-template-columns:
            1fr;
    }


    .auth-brand-heading {
        font-size:
            2.5rem;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 820px
) {

    .auth-shell {
        display:
            block;

        min-height:
            100vh;
    }


    .auth-brand-panel {
        display:
            none;
    }


    .auth-form-panel {
        min-height:
            100vh;

        align-items:
            flex-start;

        padding:
            38px
            20px;
    }


    .auth-form-wrap {
        max-width:
            470px;

        margin:
            auto;
    }


    .auth-mobile-brand {
        display:
            flex;
    }

}


/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 480px
) {

    .auth-form-panel {
        padding:
            26px
            17px;
    }


    .auth-mobile-brand {
        margin-bottom:
            32px;
    }


    .auth-form-title {
        font-size:
            1.55rem;
    }


    .auth-register-box {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .auth-register-box
    .btn {
        width:
            100%;
    }

}

/*
|--------------------------------------------------------------------------
| Compact Registration Form
|--------------------------------------------------------------------------
*/

#registerForm .form-label {
    font-size: 0.82rem;
}

#registerForm .auth-input-group .form-control,
#registerForm .auth-input-group .form-select,
#registerForm .auth-input-group .input-group-text {
    min-height: 42px;
}

#registerForm .form-text {
    font-size: 0.74rem;
}

#registerForm .row.g-2 {
    --bs-gutter-y: 0.6rem;
}

#registerForm .invalid-feedback {
    font-size: 0.74rem;
}

#registerForm #registerDialCode {
    min-width: 58px;
    justify-content: center;
    font-size: 0.86rem;
}

@media (max-width: 575.98px) {

    #registerForm .row.g-2 {
        --bs-gutter-y: 0.75rem;
    }

}

.auth-primary-button {
    color: #fff !important;
}

.auth-primary-button:hover,
.auth-primary-button:focus,
.auth-primary-button:active {
    color: #fff !important;
}
.auth-form-panel a {
    color: var(--ava-primary);
}

.auth-form-panel a.auth-primary-button {
    color: #fff;
}

.auth-form-panel a.auth-primary-button:hover,
.auth-form-panel a.auth-primary-button:focus,
.auth-form-panel a.auth-primary-button:active {
    color: #fff;
}