/* ==========================================================
   AUTH
========================================================== */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 100%;

    /* font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100; */

    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-box {
    width: 100%;
    max-width: var(--main-width);
}

.auth-logo {
    margin-bottom: 15px;
    text-align: center;
}

.auth-logo>svg {
    width: 80px;
    height: 80px;
}

.auth-title {
    margin: 0 0 35px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.15;
    font-size: 20px;
}

.auth-socials {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 26px;
    margin-bottom: 28px;
}

.auth-err-list {
    margin-bottom: 24px;
    color: var(--error-5);
}

.auth-err-list li {
    margin-bottom: 8px;
}

.social-btn {
    height: 42px;
}

.auth-socials svg {
    width: 28px;
    height: 28px;
}

.auth-divider {
    position: relative;
    margin: 26px 0;
    text-align: center;
    color: var(--gray-7);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--gray-10);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.input {
    margin-bottom: 24px;
}

.input label {
    display: block;
    margin-bottom: 12px;
    font-family: "Tektur", sans-serif;
    font-size: 14px;
}

.input input {
    width: 100%;
    font-family: "Tektur", sans-serif;
    font-size: 14px;
    padding: 10px;
}

.input input::placeholder {
    font-size: 14px;
    font-family: "Tektur", sans-serif;
    color: var(--gray-9);
}

.auth-submit {
    width: 100%;

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

    margin-top: 22px;

    font-size: 20px;
    font-weight: 500;
    padding: 4px 16px;
    box-sizing: border-box;
}

.auth-submit svg {
    width: 38px;
    height: 38px;
}

.auth-submit:hover svg {
    margin-right: -5px;
}

.auth-secondary {
    margin-top: 36px;
    height: 42px;
}

.auth-checkbox {
    margin-top: 24px;
    font-family: "Tektur", sans-serif;
    color: var(--gray-5);
    white-space: normal;
}

.auth-checkbox a {
    color: var(--primary-5);
    text-decoration: none;
}

.auth-checkbox a:hover {
    text-decoration: underline;
}

.forgot-box {
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
}

.forgot-box a {
    color: var(--primary-5);
    text-decoration: none;
}

.forgot-box a:hover {
    color: var(--text-main);
}

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

.password-field {
    position: relative;
}

.password-input {
    padding-right: 90px !important;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 53px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    opacity: .65;
    transition: .2s;
    font-size: 12px;
}

.toggle-password:hover {
    opacity: 1;
}

.password-info {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--gray-8);

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

    font-size: 12px;
    cursor: pointer;

    transition: .2s;
}

.password-info:hover {
    border-color: var(--primary-5);
    color: var(--primary-5);
}

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

.password-strength {
    display: flex;
    gap: 8px;
    margin-top: -8px;
    margin-bottom: 18px;
}

.password-strength .bar {
    flex: 1;
    height: 6px;
    border-radius: 20px;
    background: var(--gray-11);
    transition: .25s;
}

/* RED */

.password-strength.red .bar:nth-child(1) {
    background: var(--error-5);
}

/* ORANGE */

.password-strength.orange .bar:nth-child(1),
.password-strength.orange .bar:nth-child(2) {
    background: var(--attention-5);
}

/* GREEN */

.password-strength.green .bar {
    background: var(--primary-5);
}

/* ==========================================================
   RULES
========================================================== */

.password-rules {
    display: none;
    margin-bottom: 26px;
}

.password-rules.show {
    display: block;
}

.password-rules .rule {
    position: relative;
    padding-left: 26px;
    margin: 3px 0;
    color: var(--error-5);
    transition: .2s;
}

.password-rules .rule::before {

    content: "✕";

    position: absolute;

    left: 0;

}

.password-rules .rule.ok {

    color: var(--primary-5);

}

.password-rules .rule.ok::before {

    content: "✓";

}

.password-error {

    display: none;

    margin-top: -8px;
    margin-bottom: 20px;

    color: var(--error-5);

    font-size: 14px;

}

.password-error.show {

    display: block;

}

/* ==========================================================
   DISABLED
========================================================== */

.auth-submit:disabled {

    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;

}

.auth-submit:disabled svg path {
    fill: var(--gray-5);
}

/* ==========================================================
   ANIMATION
========================================================== */

.password-rules,
.password-error,
.password-strength .bar {

    transition: .25s;

}

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

@media (max-width:700px) {

    .auth-page {
        padding: 24px;
    }

    .auth-logo {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

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

    .social-btn {
        height: 42px;
    }

    .auth-submit,
    .auth-secondary {
        height: 42px;
    }

}