/* =========================================================
   FOLLOWMYTRAVELS — AUTHENTICATION
   Uses theme.css variables
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.auth-page {
    padding: 44px 0 90px;

    background: var(--color-bg);
}


.auth-shell {
    width: min(
        var(--container-wide),
        calc(100% - 64px)
    );

    min-height: 720px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(460px, 0.96fr);

    overflow: hidden;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--color-dark) 7%,
            transparent
        );

    border-radius: var(--radius-large);

    background: var(--color-bg);

    box-shadow: var(--shadow-medium);
}



/* =========================================================
   EDITORIAL SIDE
   ========================================================= */

.auth-story {
    position: relative;

    min-height: 720px;

    overflow: hidden;

    padding: 46px 50px;

    background:
        linear-gradient(
            145deg,
            var(--color-aqua),
            var(--color-mint)
        );

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}


.auth-story--login {
    background:
        linear-gradient(
            145deg,
            var(--color-mint),
            var(--color-aqua)
        );
}



/* large background shape */

.auth-story::before {
    content: "";

    position: absolute;

    width: 680px;
    height: 680px;

    right: -330px;
    bottom: -330px;

    border-radius: 50%;

    border:
        95px solid
        color-mix(
            in srgb,
            var(--color-white) 20%,
            transparent
        );
}


/* subtle second shape */

.auth-story::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -130px;
    top: 145px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--color-white) 13%,
            transparent
        );
}



/* =========================================================
   STORY TOP
   ========================================================= */

.auth-story__top {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.auth-story__index {
    width: 46px;
    height: 46px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--color-dark) 22%,
            transparent
        );

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-primary);

    font-size: 10px;
    font-weight: 700;
}


.auth-story__label {
    color: var(--text-primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2.2px;
}



/* =========================================================
   STORY CONTENT
   ========================================================= */

.auth-story__content {
    position: relative;

    z-index: 2;

    max-width: 640px;
}


.auth-story__eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--text-primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.5px;
}


.auth-story__content h1 {
    max-width: 630px;

    margin: 0;

    color: var(--text-primary);

    font-size: clamp(56px, 5vw, 84px);
    font-weight: 700;

    line-height: 0.93;

    letter-spacing: -4px;
}


.auth-story__content h1 em {
    display: block;

    font-family: var(--font-editorial);

    font-style: italic;
    font-weight: 600;

    letter-spacing: -3px;
}


.auth-story__content > p {
    max-width: 510px;

    margin: 30px 0 0;

    color:
        color-mix(
            in srgb,
            var(--color-dark) 72%,
            transparent
        );

    font-size: 16px;

    line-height: 1.75;
}



/* =========================================================
   STORY QUOTE
   ========================================================= */

.auth-story__quote {
    position: relative;

    z-index: 2;

    width: fit-content;

    max-width: 300px;

    padding: 23px 26px;

    background:
        color-mix(
            in srgb,
            var(--color-white) 82%,
            transparent
        );

    border-radius: var(--radius-medium);

    backdrop-filter: blur(14px);

    box-shadow: var(--shadow-soft);
}


.auth-story__quote-line {
    display: block;

    width: 32px;
    height: 2px;

    margin-bottom: 13px;

    background: var(--color-dark);
}


.auth-story__quote p {
    margin: 0;

    color: var(--text-primary);

    font-size: 18px;
    font-weight: 700;

    line-height: 1.25;
}


.auth-story__quote em {
    display: block;

    font-family: var(--font-editorial);

    font-style: italic;
    font-weight: 600;
}



/* =========================================================
   YELLOW SUN
   ========================================================= */

.auth-story__sun {
    position: absolute;

    right: 54px;
    top: 115px;

    width: 105px;
    height: 105px;

    border-radius: 50%;

    background: var(--color-yellow);

    box-shadow:
        0 0 0 21px
        color-mix(
            in srgb,
            var(--color-yellow) 18%,
            transparent
        );

    z-index: 1;
}



/* =========================================================
   FORM PANEL
   ========================================================= */

.auth-panel {
    min-width: 0;

    padding: 70px 72px;

    background: var(--color-bg);

    display: flex;
    align-items: center;
}


.auth-panel__inner {
    width: 100%;

    max-width: 510px;

    margin: 0 auto;
}



/* =========================================================
   FORM HEADER
   ========================================================= */

.auth-panel__header {
    margin-bottom: 43px;
}


.auth-panel__label {
    display: block;

    margin-bottom: 12px;

    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2.3px;
}


.auth-panel__header h2 {
    margin: 0;

    color: var(--text-primary);

    font-size: 52px;
    font-weight: 700;

    line-height: 0.98;

    letter-spacing: -2.6px;
}


.auth-panel__header h2 em {
    font-family: var(--font-editorial);

    font-style: italic;
    font-weight: 600;
}


.auth-panel__header p {
    margin: 17px 0 0;

    color: var(--text-secondary);

    font-size: 13px;
}


.auth-panel__header p a {
    position: relative;

    color: var(--text-primary);

    font-weight: 700;
}


.auth-panel__header p a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -3px;

    height: 1px;

    background: var(--color-dark);
}



/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    display: grid;

    gap: 24px;
}


.auth-field {
    min-width: 0;
}


.auth-field__heading {
    margin-bottom: 8px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.auth-field__heading label {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 700;
}


.auth-field__heading span {
    color:
        color-mix(
            in srgb,
            var(--color-dark) 30%,
            transparent
        );

    font-size: 9px;
    font-weight: 700;
}



/* =========================================================
   INPUT
   ========================================================= */

.auth-input-wrap {
    position: relative;
}


.auth-input-wrap .form-control {
    width: 100%;
    height: 58px;

    padding: 0 17px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--color-dark) 12%,
            transparent
        );

    border-radius: var(--radius-small);

    outline: none;

    background: var(--color-surface);

    color: var(--text-primary);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-input-wrap .form-control::placeholder {
    color:
        color-mix(
            in srgb,
            var(--color-muted) 72%,
            transparent
        );
}


.auth-input-wrap .form-control:hover {
    border-color:
        color-mix(
            in srgb,
            var(--color-dark) 20%,
            transparent
        );
}


.auth-input-wrap .form-control:focus {
    border-color: var(--color-dark);

    background: var(--color-bg);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--color-mint) 23%,
            transparent
        );
}


.auth-input-wrap--password .form-control {
    padding-right: 60px;
}



/* =========================================================
   PASSWORD EYE
   ========================================================= */

.auth-password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: var(--text-secondary);

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.auth-password-toggle:hover {
    background: var(--color-bg);

    color: var(--text-primary);
}


.auth-password-toggle.is-visible {
    background: var(--color-mint);

    color: var(--text-primary);
}


.auth-eye {
    width: 20px;
    height: 20px;

    display: flex;
}


.auth-eye svg {
    width: 100%;
    height: 100%;
}



/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.auth-form__options {
    margin-top: -3px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    color: var(--text-secondary);

    font-size: 11px;
}


.auth-form__options a {
    color: var(--text-primary);

    font-weight: 700;
}



/* =========================================================
   SUBMIT
   ========================================================= */

.auth-submit {
    width: 100%;
    min-height: 60px;

    margin-top: 4px;

    padding: 0 20px 0 22px;

    border: 0;

    border-radius: var(--radius-small);

    background: var(--color-dark);

    color: var(--text-light);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
    font-weight: 700;

    box-shadow: var(--shadow-soft);

    cursor: pointer;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}


.auth-submit:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-medium);
}


.auth-submit__arrow {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--color-white) 12%,
            transparent
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}



/* =========================================================
   FOOTNOTE
   ========================================================= */

.auth-form__footnote {
    margin: -6px 0 0;

    color: var(--text-secondary);

    font-size: 10px;

    line-height: 1.55;

    text-align: center;
}



/* =========================================================
   ERRORS
   ========================================================= */

.auth-error {
    margin-top: 7px;

    color: var(--text-primary);

    font-size: 11px;

    line-height: 1.5;
}


.auth-error::before {
    content: "—";

    margin-right: 5px;

    color: var(--color-yellow);
}


.auth-error ul {
    margin: 0;

    padding-left: 16px;
}


.auth-error--global {
    margin: 0;

    padding: 13px 15px;

    border-left:
        3px solid var(--color-yellow);

    background: var(--color-surface);

    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}


.auth-error--global::before {
    display: none;
}


.auth-error--global p {
    margin: 0;
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .auth-shell {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(430px, 1.1fr);
    }


    .auth-story {
        padding: 42px 38px;
    }


    .auth-story__content h1 {
        font-size: 61px;
    }


    .auth-panel {
        padding: 60px 45px;
    }


    .auth-story__sun {
        width: 85px;
        height: 85px;

        right: 35px;
    }

}



/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 860px) {

    .auth-page {
        padding-top: 20px;
    }


    .auth-shell {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        border-radius: var(--radius-medium);
    }


    .auth-story {
        min-height: 520px;

        padding: 38px;
    }


    .auth-story__content {
        margin-top: 80px;
    }


    .auth-story__content h1 {
        max-width: 580px;

        font-size: 67px;
    }


    .auth-story__quote {
        margin-top: 55px;
    }


    .auth-panel {
        padding: 60px 45px;
    }


    .auth-panel__inner {
        max-width: 580px;
    }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .auth-page {
        padding:
            12px 0
            55px;
    }


    .auth-shell {
        width: calc(100% - 24px);

        border-radius: var(--radius-medium);
    }


    .auth-story {
        min-height: 460px;

        padding: 28px 24px;
    }


    .auth-story__index {
        width: 40px;
        height: 40px;
    }


    .auth-story__content {
        margin-top: 55px;
    }


    .auth-story__content h1 {
        font-size: 50px;

        letter-spacing: -2.8px;
    }


    .auth-story__content h1 em {
        letter-spacing: -2px;
    }


    .auth-story__content > p {
        margin-top: 22px;

        font-size: 14px;
    }


    .auth-story__sun {
        width: 65px;
        height: 65px;

        top: 100px;
        right: 23px;

        box-shadow:
            0 0 0 13px
            color-mix(
                in srgb,
                var(--color-yellow) 18%,
                transparent
            );
    }


    .auth-story__quote {
        padding: 18px 20px;
    }


    .auth-panel {
        padding:
            45px
            22px
            38px;
    }


    .auth-panel__header {
        margin-bottom: 35px;
    }


    .auth-panel__header h2 {
        font-size: 44px;
    }


    .auth-form {
        gap: 21px;
    }


    .auth-form__options {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }

}


/* =========================================================
   HONEYPOT
   ========================================================= */

.auth-honeypot-input {
    position: absolute !important;

    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}




/* =========================================================
   EMAIL VERIFICATION
   ========================================================= */

.auth-shell--verification {
    min-height: 660px;
}


.auth-shell--verification .auth-story {
    min-height: 660px;
}


.auth-status {
    width: 100%;
}


.auth-status__icon {
    width: 74px;
    height: 74px;

    margin-bottom: 27px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            var(--color-aqua),
            var(--color-mint)
        );

    color: var(--color-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 800;

    box-shadow: var(--shadow-soft);
}


.auth-status__icon--yellow {
    background: var(--color-yellow);
}


.auth-status__title {
    margin: 0;

    color: var(--text-primary);

    font-size: 50px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -2.5px;
}


.auth-status__title em {
    font-family: var(--font-editorial);

    font-style: italic;
    font-weight: 600;
}


.auth-status__text {
    margin: 22px 0 0;

    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.75;
}


.auth-status__text strong {
    color: var(--text-primary);
}


.auth-status__notice {
    margin: 22px 0 0;

    padding: 17px 19px;

    border-radius: var(--radius-small);

    background: var(--color-surface);

    color: var(--text-primary);

    font-size: 13px;
    line-height: 1.7;
}


.auth-status__notice--warning {
    border-left:
        4px solid
        var(--color-yellow);
}


.auth-status__security {
    margin-top: 27px;

    padding: 20px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--color-dark) 8%,
            transparent
        );

    border-radius: var(--radius-medium);

    background:
        color-mix(
            in srgb,
            var(--color-surface) 55%,
            var(--color-white)
        );
}


.auth-status__security span {
    color: var(--text-primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}


.auth-status__security p {
    margin: 9px 0 0;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.65;
}


.auth-status__actions {
    margin-top: 28px;

    display: grid;

    gap: 16px;
}


.auth-status__button {
    min-height: 58px;

    padding: 0 20px;

    border-radius: var(--radius-small);

    background: var(--color-dark);

    color: var(--text-light);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
    font-weight: 700;

    box-shadow: var(--shadow-soft);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}


.auth-status__button:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-medium);
}


.auth-status__text-link {
    width: fit-content;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 700;

    border-bottom:
        1px solid
        color-mix(
            in srgb,
            var(--color-dark) 45%,
            transparent
        );
}


@media (max-width: 860px) {

    .auth-shell--verification {
        min-height: 0;
    }


    .auth-shell--verification .auth-story {
        min-height: 500px;
    }


    .auth-status__title {
        font-size: 43px;
    }

}


@media (max-width: 560px) {

    .auth-status__icon {
        width: 64px;
        height: 64px;

        border-radius: 20px;

        font-size: 24px;
    }


    .auth-status__title {
        font-size: 38px;

        letter-spacing: -2px;
    }

}