/* Full-page client login — content only, fits viewport on desktop */

body:has(.auth-login) {
    overflow: hidden;
}

.auth-login {
    position: relative;
    isolation: isolate;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: transparent;
    color: var(--navy);
}

.auth-login > .landing__ambient {
    z-index: 0;
}

.auth-login__main {
    position: relative;
    z-index: 1;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-login__back {
    position: absolute;
    top: clamp(12px, 2.5vh, 24px);
    left: clamp(16px, 3vw, 32px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 650;
    text-decoration: none;
}

.auth-login__back svg {
    width: 14px;
    height: 14px;
}

.auth-login__back:hover {
    color: var(--navy);
    border-color: var(--border-strong);
}

.auth-login__shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-login__showcase {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(16px, 3vh, 32px) clamp(20px, 4vw, 48px);
    background: transparent;
    overflow: hidden;
}

.auth-login__showcase-inner {
    width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(12px, 2.5vh, 24px);
    max-height: 100%;
}

.auth-login__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-decoration: none;
}

.auth-login__brand img {
    width: clamp(96px, 14vh, 140px);
    height: clamp(96px, 14vh, 140px);
    object-fit: contain;
}

.auth-login__pitch {
    max-width: 440px;
}

.auth-login__pitch-title {
    margin: 0 0 clamp(10px, 2vh, 18px);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.auth-login__pitch-title em {
    font-style: normal;
    color: var(--primary);
}

.auth-login__pitch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(6px, 1.2vh, 10px);
}

.auth-login__pitch-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    font-weight: 500;
    color: var(--text-muted);
}

.auth-login__pitch-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, var(--primary) 0%, #c40000 100%);
}

.auth-login__pitch-icon svg {
    width: 13px;
    height: 13px;
}

.auth-login__showcase-foot {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
}

.auth-login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2.5vh, 24px) clamp(16px, 3vw, 32px);
    overflow: hidden;
    background: transparent;
}

.auth-login__panel-card {
    width: min(100%, 360px);
    max-height: calc(100dvh - 32px);
    padding: clamp(12px, 2vh, 18px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow);
}

.auth-login__panel-card > .section-label {
    margin-bottom: 6px;
}

.auth-login__title.section-title {
    margin: 0 0 4px;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.auth-login__lead {
    margin: 0 0 clamp(8px, 1.5vh, 12px);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.auth-login__form {
    display: grid;
    gap: 0;
}

.auth-login__stage {
    position: relative;
    min-height: 0;
}

.auth-login__phone-step,
.auth-login__otp-block {
    display: grid;
    gap: clamp(8px, 1.5vh, 12px);
    width: 100%;
}

.auth-login__phone-step[hidden],
.auth-login__otp-block[hidden] {
    display: none !important;
}

.auth-login__field {
    display: grid;
    gap: 6px;
}

.auth-login__field > span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
}

.auth-login__field > span em {
    color: var(--primary);
    font-style: normal;
}

.auth-login__phone {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(252, 0, 0, 0.35);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login__phone:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 0, 0.1);
}

.auth-login__phone-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0 12px;
    border-right: 1px solid rgba(252, 0, 0, 0.18);
    background: rgba(252, 0, 0, 0.04);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
}

.auth-login__phone-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    outline: none;
}

.auth-login__phone-input::placeholder {
    letter-spacing: normal;
    color: var(--text-light);
}

.auth-login__text-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(252, 0, 0, 0.35);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login__text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 0, 0.1);
}

.auth-login__profile-step {
    display: grid;
    gap: clamp(8px, 1.5vh, 12px);
    width: 100%;
}

.auth-login__profile-step[hidden] {
    display: none !important;
}

.auth-login__profile-intro {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.auth-login__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-login__consent input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.auth-login__submit {
    width: 100%;
    margin-top: 0;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(252, 0, 0, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.auth-login__submit:hover:not(:disabled) {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(252, 0, 0, 0.24);
}

.auth-login__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-login__sent-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-subtle) 100%);
}

.auth-login__sent-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.auth-login__sent-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.auth-login__sent-number {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.auth-login__edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(252, 0, 0, 0.22);
    border-radius: 999px;
    background: rgba(252, 0, 0, 0.06);
    color: var(--primary);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 750;
    cursor: pointer;
}

.auth-login__edit-btn svg {
    width: 12px;
    height: 12px;
}

.auth-login__edit-btn:hover {
    background: rgba(252, 0, 0, 0.1);
    border-color: rgba(252, 0, 0, 0.35);
}

.auth-login__otp-boxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.auth-login__otp-digit {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login__otp-digit:focus {
    border-color: rgba(252, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(252, 0, 0, 0.1);
}

.auth-login__otp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.auth-login__otp-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-login__link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    color: var(--primary);
    cursor: pointer;
}

.auth-login__link-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-login__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: clamp(14px, 2.5vh, 20px) 0 0;
    padding-top: clamp(12px, 2vh, 16px);
    border-top: 1px solid var(--border);
}

.auth-login__secure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.auth-login__secure-icon svg {
    width: 18px;
    height: 18px;
}

.auth-login__secure-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    line-height: 1.25;
}

.auth-login__secure-copy strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy);
}

.auth-login__secure-copy span {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.auth-login__toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    max-width: min(92vw, 360px);
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--navy);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.auth-login__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.auth-login__toast.is-success {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.12);
}

.auth-login__toast.is-error {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    body:has(.auth-login) {
        overflow: auto;
    }

    .auth-login {
        height: auto;
        max-height: none;
        overflow: visible;
        min-height: 100dvh;
    }

    .auth-login__main,
    .auth-login__shell {
        height: auto;
        max-height: none;
        overflow: visible;
    }

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

    .auth-login__showcase {
        justify-content: center;
        padding: 20px 16px;
    }

    .auth-login__showcase-inner {
        align-items: center;
    }

    .auth-login__brand {
        justify-content: center;
    }

    .auth-login__pitch {
        text-align: center;
    }

    .auth-login__pitch-title {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .auth-login__pitch-list,
    .auth-login__showcase-foot {
        display: none;
    }

    .auth-login__panel {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .auth-login__showcase {
        padding: 16px;
    }

    .auth-login__brand img {
        width: clamp(80px, 22vw, 112px);
        height: clamp(80px, 22vw, 112px);
    }

    .auth-login__panel-card {
        border: 1px solid var(--glass-border);
        background: var(--glass-bg-strong);
        box-shadow: var(--glass-shadow);
        padding: clamp(12px, 2vh, 18px);
        max-height: none;
    }
}
