/* FastMust authentication pages */
.auth-page {
    position: relative;
    padding: 48px 0 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(29, 111, 232, .09), transparent 28%),
        radial-gradient(circle at 94% 88%, rgba(244, 122, 56, .10), transparent 26%),
        #f8fafc;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.auth-page::before,
.auth-page::after {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(29, 111, 232, .08);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}
.auth-page::before {
    top: -125px;
    left: -90px;
}
.auth-page::after {
    right: -135px;
    bottom: -150px;
}
.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
    width: 100%;
    max-width: 1180px;
    min-height: 680px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 32, 51, .10);
}
.auth-page--register .auth-layout {
    min-height: 730px;
}

.auth-showcase {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #253352;
}
.auth-showcase__image,
.auth-showcase__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.auth-showcase__image {
    object-fit: cover;
    object-position: 57% center;
    transform: scale(1.02);
}
.auth-showcase__overlay {
    background:
        linear-gradient(180deg, rgba(37, 51, 82, .35) 0%, rgba(37, 51, 82, .22) 28%, rgba(37, 51, 82, .90) 100%),
        linear-gradient(125deg, rgba(13, 52, 104, .55), transparent 65%);
}
.auth-showcase__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 42px;
    color: #fff;
}
.auth-showcase__brand {
    align-self: flex-start;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
}
.auth-showcase__brand strong {
    color: #ff9a5f;
    font-weight: inherit;
}
.auth-showcase__brand:hover {
    color: #fff;
    text-decoration: none;
}
.auth-showcase__copy {
    max-width: 430px;
    margin-top: auto;
    margin-bottom: 0;
}
.auth-showcase__eyebrow,
.auth-heading__eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    line-height: 1.4;
    text-transform: uppercase;
}
.auth-showcase__eyebrow {
    color: #ffb187;
}
.auth-showcase__copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 3.4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.9px;
}
.auth-showcase__copy h1 em {
    color: #ff9a5f;
    font-style: normal;
}
.auth-showcase__copy p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .80);
    font-size: 15px;
    line-height: 1.75;
}
.auth-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.auth-service {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.auth-service span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #ffb187;
    font-size: 16px;
}
.auth-service:hover,
.auth-service:focus-visible {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.auth-service:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .28);
    outline-offset: 2px;
}

.auth-panel {
    display: flex;
    align-items: center;
    padding: 54px clamp(42px, 5vw, 76px);
    background: #fff;
}
.auth-panel__inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.auth-heading {
    position: relative;
    margin-bottom: 30px;
    padding-right: 58px;
}
.auth-heading__icon {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf4ff;
    color: #1d6fe8;
    font-size: 22px;
}
.auth-heading__eyebrow {
    margin-bottom: 8px;
    color: #1d6fe8;
}
.auth-heading h2 {
    margin: 0 0 10px;
    color: #253352;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.8px;
}
.auth-heading p {
    margin: 0;
    color: #5b6782;
    font-size: 14px;
    line-height: 1.65;
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-alert--success {
    border: 1px solid #bce8d0;
    background: #effaf4;
    color: #18794e;
}
.auth-alert i {
    margin-top: 1px;
    font-size: 18px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.auth-field {
    min-width: 0;
}
.auth-field label,
.auth-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #4a5672;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-label-row a {
    margin-bottom: 8px;
    color: #1d6fe8;
    font-size: 12px;
    font-weight: 700;
}
.auth-control {
    display: flex;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(37, 51, 82, .02);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-control:focus-within {
    border-color: #1d6fe8;
    box-shadow: 0 0 0 4px rgba(29, 111, 232, .10);
}
.auth-control.is-invalid {
    border-color: #e05252;
}
.auth-control > i {
    flex: 0 0 48px;
    color: #98a2b3;
    font-size: 18px;
    text-align: center;
}
.auth-control input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253352;
    font-family: inherit;
    font-size: 14px;
}
.auth-control input::placeholder {
    color: #a5adba;
}
.auth-password-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5b6782;
    font-size: 18px;
    cursor: pointer;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: #1d6fe8;
}
.auth-password-toggle:focus-visible {
    outline: 2px solid #1d6fe8;
    outline-offset: -4px;
    border-radius: 9px;
}
.auth-error {
    margin: 7px 0 0;
    color: #c93636;
    font-size: 12px;
    line-height: 1.45;
}
.auth-check {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin: -2px 0 0 !important;
    color: #5b6782 !important;
    cursor: pointer;
    user-select: none;
}
.auth-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #1d6fe8;
}
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 22px;
    border: 0;
    border-radius: 13px;
    background: #1d6fe8;
    box-shadow: 0 10px 22px rgba(29, 111, 232, .20);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-submit:hover {
    background: #155fc9;
    box-shadow: 0 13px 28px rgba(29, 111, 232, .28);
    transform: translateY(-1px);
}
.auth-submit:focus-visible {
    outline: 3px solid rgba(29, 111, 232, .28);
    outline-offset: 3px;
}
.auth-submit i {
    font-size: 18px;
}
.auth-switch {
    margin: 24px 0 0;
    color: #5b6782;
    font-size: 13px;
    text-align: center;
}
.auth-switch a {
    margin-left: 4px;
    color: #1d6fe8;
    font-weight: 800;
}
.auth-switch a:hover {
    color: #155fc9;
}
.auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}
.auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5b6782;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.auth-trust i {
    color: #f47a38;
    font-size: 14px;
}
.auth-terms {
    margin: -3px 0 0;
    color: #5b6782;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .auth-layout {
        grid-template-columns: minmax(330px, .82fr) minmax(440px, 1.18fr);
    }
    .auth-showcase__content {
        padding: 34px;
    }
    .auth-panel {
        padding-right: 42px;
        padding-left: 42px;
    }
    .auth-showcase__copy h1 {
        font-size: 36px;
    }
}
@media (max-width: 860px) {
    .auth-page {
        padding: 30px 0 46px;
    }
    .auth-layout,
    .auth-page--register .auth-layout {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px;
    }
    .auth-showcase {
        min-height: 310px;
    }
    .auth-showcase__content {
        min-height: 310px;
    }
    .auth-showcase__copy {
        margin-top: 64px;
        margin-bottom: 0;
    }
    .auth-showcase__copy h1 {
        max-width: 520px;
        font-size: 36px;
    }
    .auth-showcase__copy p {
        display: none;
    }
    .auth-services {
        max-width: 470px;
    }
    .auth-service {
        flex-direction: row;
        align-items: center;
        padding: 9px 10px;
    }
    .auth-service span {
        width: 28px;
        height: 28px;
    }
    .auth-panel {
        padding: 46px 42px;
    }
}
@media (max-width: 575px) {
    .auth-page {
        padding: 16px 0 34px;
    }
    .auth-page .home-page-container {
        padding-right: 12px;
        padding-left: 12px;
    }
    .auth-layout,
    .auth-page--register .auth-layout {
        border-radius: 18px;
    }
    .auth-showcase {
        min-height: 250px;
    }
    .auth-showcase__content {
        min-height: 250px;
        padding: 24px;
    }
    .auth-showcase__brand {
        font-size: 24px;
    }
    .auth-showcase__copy {
        margin-top: 42px;
        margin-bottom: 0;
    }
    .auth-showcase__eyebrow {
        margin-bottom: 9px;
        font-size: 12px;
    }
    .auth-showcase__copy h1 {
        margin-bottom: 0;
        font-size: 28px;
        letter-spacing: -1.2px;
    }
    .auth-services {
        gap: 6px;
    }
    .auth-service {
        justify-content: center;
        padding: 9px 6px;
        font-size: 12px;
        text-align: center;
    }
    .auth-service span {
        display: none;
    }
    .auth-panel {
        padding: 36px 24px 30px;
    }
    .auth-heading {
        margin-bottom: 26px;
        padding-right: 48px;
    }
    .auth-heading__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .auth-heading h2 {
        font-size: 28px;
    }
    .auth-form__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .auth-trust {
        gap: 7px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .auth-service,
    .auth-submit {
        transition: none;
    }
}

/*======= Register: required Terms of service checkbox =======*/
.auth-check--terms {
    align-items: flex-start;
    line-height: 1.5;
}
.auth-check--terms input {
    flex-shrink: 0;
    margin-top: 2px;
}
.auth-check--terms a {
    color: #1d6fe8;
    font-weight: 700;
    text-decoration: underline;
}
.auth-check--terms a:hover {
    color: #155fc9;
}

/*======= Verify email page =======*/
.auth-verify-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #d6e5fb;
    border-radius: 12px;
    background: #f3f8ff;
    color: #253352;
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
}
.auth-verify-email i {
    flex-shrink: 0;
    color: #1d6fe8;
    font-size: 20px;
}
.auth-verify-text {
    margin: 0 0 24px;
    color: #4a5672;
    font-size: 14px;
    line-height: 1.7;
}
.auth-verify-logout {
    margin-top: 18px;
    text-align: center;
}
.auth-verify-logout button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 0;
    background: none;
    color: #4a5672;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s;
}
.auth-verify-logout button:hover {
    color: #1d6fe8;
}
.auth-verify-logout i {
    font-size: 16px;
}
