.shop-auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 60px);
    padding: 88px 16px 48px;
    background: #f4f4f4;
    box-sizing: border-box;
}

.shop-auth-page.page-content {
    margin-left: 0;
    margin-right: 0;
}

.shop-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 32px 28px;
    box-sizing: border-box;
    overflow: hidden;
}

.shop-auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: #111;
}

.shop-auth-subtitle {
    margin: 0 0 24px;
    font-size: .9rem;
    color: #666;
    line-height: 1.5;
}

.shop-auth-step + .shop-auth-step {
    margin-top: 0;
}

.shop-auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: #333;
}

.shop-auth-mobile-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
}

.shop-auth-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: .92rem;
    color: #555;
}

.shop-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
}

.shop-auth-mobile-row .shop-auth-input {
    border-radius: 0 4px 4px 0;
    flex: 1;
}

.shop-auth-otp-input {
    margin-bottom: 16px;
    letter-spacing: .25em;
    text-align: center;
    font-size: 1.1rem;
}

.shop-auth-captcha {
    --captcha-width: 303px;
    --captcha-height: 78px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
    container-type: inline-size;
}

.shop-auth-captcha > div,
.shop-auth-captcha iframe {
    max-width: 100% !important;
    box-sizing: border-box;
}

.shop-auth-captcha > div {
    transform-origin: top left;
    width: var(--captcha-width) !important;
    max-width: none !important;
}

@container (max-width: 302px) {
    .shop-auth-captcha {
        height: calc(100cqw / var(--captcha-width) * var(--captcha-height));
    }

    .shop-auth-captcha > div {
        transform: scale(calc(100cqw / var(--captcha-width)));
        transform-origin: top left;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 400px) {
        .shop-auth-captcha {
            height: 66px;
        }

        .shop-auth-captcha > div {
            transform: scale(0.86);
            transform-origin: top left;
        }
    }
}

.shop-auth-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.shop-auth-btn:hover:not(:disabled) {
    opacity: .88;
}

.shop-auth-btn:disabled,
.shop-auth-btn-outline:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.shop-auth-btn-outline {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

.shop-auth-otp-sent {
    margin: 0 0 16px;
    font-size: .9rem;
    color: #444;
    line-height: 1.5;
}

.shop-auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #2563eb;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.shop-auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: .88rem;
    line-height: 1.45;
}

.shop-auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.shop-auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.shop-auth-loading {
    margin: 12px 0 0;
    text-align: center;
    font-size: .88rem;
    color: #666;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .shop-auth-page {
        padding: 80px 12px 32px;
    }

    .shop-auth-card {
        padding: 24px 16px;
    }
}
