/* Auth welcome / gate page — no site header/footer */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.auth-welcome {
    --auth-welcome-media-width: calc(100svw - 475px);
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-main);
}

.auth-welcome.has-image::before,
.auth-welcome.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--auth-welcome-media-width);
    pointer-events: none;
}

.auth-welcome.has-image::before {
    background-image: var(--auth-welcome-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.auth-welcome.has-image::after {
    z-index: 1;

}

.auth-welcome-panel {
    position: relative;
    z-index: 2;
    flex: 0 0 32%;
    max-width: 475px;
    min-width: 475px;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 32px 72px 32px 60px;
    background: transparent;
    overflow-y: auto;
}

.auth-welcome-inner {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
}

.auth-welcome-title {
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.auth-welcome-text {
    color: var(--color-text-secondary);
}

.auth-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auth-welcome-btn {
    width: 100%;
    text-decoration: none;
}

.auth-welcome-outline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    border: 1px solid var(--color-bg-dark);
    background: transparent;
    color: var(--color-bg-dark);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--text-button-size);
    line-height: var(--text-button-lh);
    font-weight: var(--text-button-weight);
    transition: background-color .2s;
}

.auth-welcome-outline-btn:hover {
    background: rgba(22, 20, 18, 0.06);
    text-decoration: none;
}

/* Login form inside auth welcome layout */
.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.auth-login-form .form-field {
    margin-bottom: 0;
}

.auth-login-form .form-field > label {
    display: none;
}

.auth-login-remember {
    margin: 0;
}

.auth-login-remember input {
    height: 20px;
    width: 20px;
}

.auth-login-switch,
.auth-login-forgot {
    margin: 0;
    text-align: center;
    color: var(--color-text-secondary);
    align-self: center;
}


.auth-login-switch a,
.auth-login-forgot a {
    color: var(--color-accent-terracotta);
    text-decoration: none;
    text-underline-offset: 3px;
}

.auth-login-switch a:hover,
.auth-login-forgot a:hover {
    color: var(--color-accent-terracotta-hover);
}

.auth-privacy-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-privacy-link:hover {
    color: var(--color-accent);
}

.auth-flash-success {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-form-success-bg);
    color: var(--color-form-success-text);
    border: 1px solid var(--color-form-success-border);
}

.auth-otp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.auth-otp-cell {
    width: 100%;
    aspect-ratio: 1;
    min-height: 48px;
    border: 1px solid var(--color-border-light);
    background: var(--color-text-inverse);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--text-body-lg-size);
    line-height: var(--text-body-lg-lh);
    color: var(--color-text-primary);
    outline: none;
}

.auth-otp-cell:focus {
    border-color: var(--color-text-primary);
}

.auth-otp-resend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--color-text-secondary);
    text-align: center;
}

.auth-otp-timer {
    margin: 0;
}

.auth-otp-resend-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--color-text-primary);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-otp-resend-btn:hover {
    color: var(--color-accent);
}

.auth-otp-resend-btn[hidden],
.auth-otp-timer[hidden] {
    display: none;
}

@media (max-width: 1919px) {
    .auth-welcome.has-image::before {
        background-position: center center;
    }
}

@media (max-width: 1199px) {
    .auth-welcome {
    }

    .auth-welcome-panel {
    }
}

@media (max-width: 1023px) {
    .auth-welcome-panel {
        min-width: 40svw;
        max-width: 40svw;
        padding: 32px 24px;
    }

    .auth-welcome {
        --auth-welcome-media-width: 60svw;
    }
}

@media (max-width: 767px) {
    .auth-welcome {
        --auth-welcome-media-width: 100svw;
        flex-direction: column;
    }

    .auth-welcome.has-image::after {
        background: linear-gradient(90deg, #FFFDF8 16.87%, rgba(255, 253, 248, 0.5) 100%);
    }

    .auth-welcome-panel {
        flex: none;
        max-width: none;
        min-width: 0;
        min-height: 100vh;
        padding: 32px 24px;
        align-items: center;
    }

    .auth-welcome-inner {
        max-width: 100svw;
        margin: 0 auto;
    }
}
