/* =========================================================
   MINDLYCHAT AUTH
========================================================= */

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
}


.auth-page {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        30px
        18px
        90px;

    overflow: hidden;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {

    position: relative;

    width: min(
        100%,
        430px
    );

    padding:
        38px 34px 30px;

    border-radius: 34px;

    z-index: 5;

    animation:
        authAppear
        .55s
        cubic-bezier(.2,.8,.2,1)
        both;
}


@keyframes authAppear {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {

    display: flex;

    justify-content: center;

    margin-bottom: 22px;
}


.auth-logo-mark {

    position: relative;

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #eef2ff,
            #ffffff
        );

    box-shadow:
        0 18px 38px rgba(91,124,255,.15),
        inset 0 1px 0 white;
}




.auth-logo-mark span {

    position: absolute;

    z-index: 3;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: white;
}


.auth-logo-mark span:first-child {

    transform:
        translateX(-10px);
}


.auth-logo-mark span:last-child {

    transform:
        translateX(10px);
}


/* =========================================================
   HEADING
========================================================= */

.auth-heading {

    text-align: center;

    margin-bottom: 27px;
}


.auth-heading h1 {

    font-size: 28px;

    line-height: 1.1;

    letter-spacing: -1px;

    font-weight: 760;
}


.auth-heading p {

    margin-top: 8px;

    color: #858a95;

    font-size: 13px;

    line-height: 1.45;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {

    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   FIELD
========================================================= */

.auth-field {

    position: relative;

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 61px;

    padding:
        8px 13px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.64);

    border:
        1px solid rgba(255,255,255,.82);

    box-shadow:
        inset 0 1px 0 white;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.auth-field:focus-within {

    background:
        rgba(255,255,255,.84);

    border-color:
        rgba(102,132,255,.4);

    box-shadow:
        0 0 0 3px rgba(102,132,255,.08),
        inset 0 1px 0 white;
}


.field-icon {

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #737988;

    background:
        rgba(244,246,255,.8);

    font-size: 16px;

    font-weight: 700;
}


.field-icon svg {

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.username-icon {

    color: #667ff2;

    background:
        rgba(229,234,255,.9);
}


.field-content {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.field-label {

    color: #858a96;

    font-size: 10px;

    font-weight: 600;
}


.field-content input {

    width: 100%;

    border: 0;

    outline: 0;

    padding: 0;

    background: transparent;

    color: #171923;

    font-size: 14px;

    line-height: 20px;
}


.field-content input::placeholder {

    color: #a6aab4;
}


.password-toggle {

    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #9499a4;

    transition:
        background .2s ease;
}


.password-toggle:hover {

    background:
        rgba(235,238,248,.8);
}


.password-toggle svg {

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   HINT
========================================================= */

.field-hint {

    margin:
        -4px 5px 1px;

    color: #9a9ea8;

    font-size: 10px;
}


/* =========================================================
   OPTIONS
========================================================= */

.auth-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin:
        4px
        3px
        4px;
}


.remember,
.terms {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    color: #777c87;

    font-size: 11px;

    line-height: 1.45;

    cursor: pointer;
}


.remember input,
.terms input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-checkbox {

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-top: 0;

    border-radius: 5px;

    background:
        rgba(255,255,255,.65);

    border:
        1px solid rgba(150,155,165,.35);

    transition:
        background .2s ease,
        border .2s ease;
}


.remember input:checked +
.custom-checkbox,
.terms input:checked +
.custom-checkbox {

    background:
        linear-gradient(
            135deg,
            #6381ff,
            #806eff
        );

    border-color:
        transparent;
}


.remember input:checked +
.custom-checkbox::after,
.terms input:checked +
.custom-checkbox::after {

    content: "";

    display: block;

    width: 8px;
    height: 4px;

    margin:
        4px 0 0 3px;

    border-left:
        1.8px solid white;

    border-bottom:
        1.8px solid white;

    transform:
        rotate(-45deg);
}


.forgot-link,
.terms a {

    color: #657cf0;

    text-decoration: none;

    font-weight: 600;
}


.forgot-link:hover,
.terms a:hover {

    text-decoration: underline;
}


/* =========================================================
   TERMS
========================================================= */

.terms {

    margin:
        4px
        3px
        5px;
}


/* =========================================================
   MESSAGE
========================================================= */

.auth-message {

    display: none;

    padding:
        10px 12px;

    border-radius: 13px;

    color: #c03e50;

    background:
        rgba(255,230,234,.72);

    border:
        1px solid rgba(255,180,192,.4);

    font-size: 11px;

    line-height: 1.4;
}


.auth-message.visible {

    display: block;

    animation:
        messageIn
        .2s
        ease;
}


.auth-message.success {

    color: #258255;

    background:
        rgba(224,249,237,.72);

    border-color:
        rgba(130,220,170,.4);
}


@keyframes messageIn {

    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   SUBMIT
========================================================= */

.auth-submit {

    position: relative;

    height: 52px;

    margin-top: 3px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #5f7eff,
            #806dff
        );

    box-shadow:
        0 15px 30px rgba(91,124,255,.25),
        inset 0 1px 0 rgba(255,255,255,.4);

    font-size: 14px;

    font-weight: 700;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.auth-submit::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(255,255,255,.22),
            transparent 75%
        );

    transform:
        translateX(-100%);

    transition:
        transform .6s ease;
}


.auth-submit:hover::before {

    transform:
        translateX(100%);
}


.auth-submit:hover {

    box-shadow:
        0 18px 38px rgba(91,124,255,.32),
        inset 0 1px 0 rgba(255,255,255,.4);
}


.auth-submit:active {

    transform:
        scale(.98);
}


.auth-submit.loading {

    pointer-events: none;

    opacity: .8;
}


.button-loader {

    display: none;

    width: 18px;
    height: 18px;

    border:
        2px solid rgba(255,255,255,.35);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}


.auth-submit.loading
.button-text {

    display: none;
}


.auth-submit.loading
.button-loader {

    display: block;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-top: 22px;

    color: #858a95;

    font-size: 12px;
}


.auth-footer a {

    color: #617cf0;

    text-decoration: none;

    font-weight: 650;
}


.auth-footer a:hover {

    text-decoration: underline;
}


/* =========================================================
   BACK HOME
========================================================= */

.back-home {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    margin-top: 20px;

    color: #9296a1;

    text-decoration: none;

    font-size: 11px;

    font-weight: 550;
}


.back-home:hover {

    color: #657cf0;
}


.back-home svg {

    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   BRAND
========================================================= */

.auth-brand {

    position: absolute;

    bottom:
        calc(
            25px + var(--safe-bottom)
        );

    left: 0;
    right: 0;

    z-index: 3;

    text-align: center;

    pointer-events: none;
}


.auth-brand-name {

    color: rgba(80,85,100,.38);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


.auth-brand-tagline {

    margin-top: 3px;

    color: rgba(100,105,120,.32);

    font-size: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .auth-page {

        align-items:
            flex-start;

        padding:
            25px
            13px
            80px;
    }


    .auth-card {

        margin-top: 5px;

        padding:
            30px 18px 25px;

        border-radius: 29px;
    }


    .auth-heading h1 {

        font-size: 25px;
    }


    .auth-logo-mark {

        width: 62px;
        height: 62px;

        border-radius: 21px;
    }


    .auth-field {

        min-height: 58px;
    }


    .auth-brand {

        bottom:
            calc(
                15px + var(--safe-bottom)
            );
    }
}


@media (max-height: 720px) {

    .auth-page {

        align-items:
            flex-start;

        padding-top: 15px;
    }


    .auth-card {

        padding-top: 22px;
        padding-bottom: 20px;
    }


    .auth-logo {

        margin-bottom: 12px;
    }


    .auth-logo-mark {

        width: 52px;
        height: 52px;

        border-radius: 18px;
    }


    .auth-heading {

        margin-bottom: 17px;
    }


    .auth-heading h1 {

        font-size: 23px;
    }


    .auth-form {

        gap: 7px;
    }


    .auth-field {

        min-height: 53px;
    }
}