/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}



[v-cloak] {
    display: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.auth-container {
    width: 100%;

    padding: 24px;
}


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

.auth-card {
    width: 100%;
    max-width: 480px;

    margin: 0 auto;

    overflow: hidden;

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 22px;

    box-shadow:
        0 5px 14px
        color-mix(
            in srgb,
            var(--text-1) 4%,
            transparent
        ),
        0 24px 60px
        color-mix(
            in srgb,
            var(--text-1) 9%,
            transparent
        );
}


.auth-card-body {
    padding: 40px;
}


/* =========================================================
   ICON
========================================================= */

.auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;

    margin: 0 auto 21px;

    color: var(--text-2);

    background:
        linear-gradient(
            135deg,
            var(--bg-3),
            color-mix(
                in srgb,
                var(--bg-3) 62%,
                var(--bg-2)
            )
        );

    border: 1px solid var(--border-1);
    border-radius: 20px;

    font-size: 30px;
}


/* =========================================================
   TITLE
========================================================= */

.auth-title {
    margin: 0 0 9px;

    color: var(--text-1);

    font-size: 28px;
    font-weight: 750;

    line-height: 1.2;

    text-align: center;

    letter-spacing: -.025em;
}


.auth-description {
    max-width: 350px;

    margin: 0 auto 30px;

    color: var(--text-3);

    font-size: 14px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   LABEL
========================================================= */

.form-label {
    margin-bottom: 8px;

    color: var(--text-2);

    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   PHONE
========================================================= */

.phone-group {
    display: grid;

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

    gap: 9px;
}


.country-select,
.phone-input {
    min-width: 0;
    min-height: 54px;

    color: var(--text-1);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 12px;

    font-size: 15px;

    box-shadow: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.country-select {
    cursor: pointer;
}


.phone-input {
    padding: 12px 14px;
}


.country-select:focus,
.phone-input:focus {
    color: var(--text-1);

    background: var(--bg-2);

    border-color: var(--text-2);

    outline: none;

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--text-2) 12%,
            transparent
        );
}


.country-select:disabled,
.phone-input:disabled {
    background: var(--bg-1);

    opacity: .65;
}


/* =========================================================
   INPUT DESCRIPTION
========================================================= */

.input-description {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    margin-top: 9px;

    color: var(--text-3);

    font-size: 12px;

    line-height: 1.4;
}


.input-description i {
    margin-top: 1px;

    flex: 0 0 auto;
}


/* =========================================================
   DELIVERY
========================================================= */

.delivery-section {
    margin-top: 24px;
}


.delivery-header {
    margin-bottom: 11px;
}


.delivery-title {
    margin-bottom: 2px;

    color: var(--text-1);

    font-size: 14px;
    font-weight: 700;
}


.delivery-description {
    color: var(--text-3);

    font-size: 12px;
}


/* =========================================================
   CHANNELS
========================================================= */

.channel-grid {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.channel-button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 70px;

    padding: 12px 13px;

    color: var(--text-1);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 13px;

    text-align: left;

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.channel-button:hover:not(:disabled) {
    transform: translateY(-1px);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 72%,
            var(--bg-3)
        );
}


.channel-button.active {
    background:
        color-mix(
            in srgb,
            var(--bg-2) 58%,
            var(--bg-3)
        );

    border-color: var(--text-2);

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--text-2) 8%,
            transparent
        );
}


/* =========================================================
   CHANNEL ICON
========================================================= */

.channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    color: var(--text-2);

    background: var(--bg-3);

    border: 1px solid var(--border-1);
    border-radius: 11px;

    font-size: 19px;
}


/* =========================================================
   CHANNEL CONTENT
========================================================= */

.channel-content {
    min-width: 0;

    flex: 1;
}


.channel-title {
    margin-bottom: 2px;

    color: var(--text-1);

    font-size: 14px;
    font-weight: 700;
}


.channel-description {
    color: var(--text-3);

    font-size: 11px;

    line-height: 1.35;
}


/* =========================================================
   CHECK
========================================================= */

.channel-check {
    flex: 0 0 auto;
}


.channel-check-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    color: transparent;

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 50%;

    font-size: 13px;
}


.channel-check-circle.active {
    color: var(--bg-2);

    background: var(--text-2);

    border-color: var(--text-2);
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 54px;

    margin-top: 24px;

    padding: 12px 18px;

    color: var(--text-3);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 45%,
            var(--bg-3)
        );

    border: 1px solid var(--border-1);
    border-radius: 13px;

    font-size: 14px;
    font-weight: 700;

    opacity: 1;

    box-shadow: none;

    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.auth-button:disabled {
    color: var(--text-3);

    background: var(--bg-3);

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

    opacity: .7;

    cursor: not-allowed;
}


.auth-button-active {
    color: var(--bg-2);

    background: var(--text-1);

    border-color: var(--text-1);

    opacity: 1;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        color-mix(
            in srgb,
            var(--text-1) 14%,
            transparent
        );
}


.auth-button-active:hover:not(:disabled) {
    color: var(--bg-2);

    background:
        color-mix(
            in srgb,
            var(--text-1) 85%,
            var(--text-2)
        );

    border-color:
        color-mix(
            in srgb,
            var(--text-1) 85%,
            var(--text-2)
        );

    transform: translateY(-1px);
}


.auth-button-loading {
    color: var(--bg-2);

    background: var(--text-1);

    border-color: var(--text-1);

    opacity: .75;
}


/* =========================================================
   BUTTON CONTENT
========================================================= */

.button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


/* =========================================================
   SPINNER
========================================================= */

.loading-spinner {
    width: 17px;
    height: 17px;

    border:
        2px solid
        color-mix(
            in srgb,
            var(--bg-2) 35%,
            transparent
        );

    border-top-color: var(--bg-2);

    border-radius: 50%;

    animation: auth-spin .7s linear infinite;
}


@keyframes auth-spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   STEP 2 PREVIEW
========================================================= */

.verification-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 23px;

    padding: 13px;

    background:
        color-mix(
            in srgb,
            var(--bg-2) 58%,
            var(--bg-3)
        );

    border: 1px solid var(--border-1);
    border-radius: 13px;
}


.verification-preview-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.verification-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: var(--text-2);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 10px;

    font-size: 17px;
}


.verification-preview-text {
    min-width: 0;
}


.verification-preview-channel {
    display: block;

    margin-bottom: 2px;

    color: var(--text-3);

    font-size: 11px;
}


.verification-preview-number {
    display: block;

    overflow: hidden;

    color: var(--text-1);

    font-size: 14px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.change-phone-button {
    flex: 0 0 auto;

    padding: 5px 7px;

    color: var(--text-2);

    background: transparent;

    border: 0;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   CODE
========================================================= */

.code-wrapper {
    position: relative;
}


.code-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--text-3);

    font-size: 17px;

    pointer-events: none;
}

.code-input {
    min-height: 56px;

    padding: 12px 16px;

    color: var(--text-1);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 12px;

    font-size: 23px;
    font-weight: 750;

    letter-spacing: 10px;

    box-shadow: none;
}


.code-input:focus {
    color: var(--text-1);

    background: var(--bg-2);

    border-color: var(--text-2);

    outline: none;

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--text-2) 12%,
            transparent
        );
}


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

@media (max-width: 576px) {

    body {
        align-items: flex-start;
    }


    .auth-container {
        padding: 14px;
    }


    .auth-card {
        margin-top: 15px;

        border-radius: 18px;
    }


    .auth-card-body {
        padding: 28px 20px;
    }


    .auth-icon {
        width: 64px;
        height: 64px;

        margin-bottom: 18px;

        border-radius: 17px;

        font-size: 26px;
    }


    .auth-title {
        font-size: 24px;
    }


    .auth-description {
        margin-bottom: 26px;

        font-size: 13px;
    }


    .phone-group {
        grid-template-columns: 105px minmax(0, 1fr);

        gap: 7px;
    }


    .country-select,
    .phone-input {
        min-height: 50px;

        font-size: 14px;
    }


    .channel-button {
        min-height: 66px;

        padding: 11px;
    }


    .auth-button {
        min-height: 52px;

        margin-top: 20px;
    }

}