/* 登入與註冊共用品牌、卡片及欄位樣式，讓手機驗證到會員資料維持一致。 */
.main-container.auth-page {
    flex: 1;
    padding: 32px 20px 24px;
    background: linear-gradient(180deg, #f1f8f2 0, var(--bg-white) 240px);
}

.auth-page__welcome {
    margin-bottom: 28px;
    text-align: center;
}

.auth-page__brand-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border: 1px solid #d8eadb;
    border-radius: 24px;
    background: var(--bg-white);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.06);
}

.auth-page__brand-mark img {
    display: block;
    object-fit: contain;
}

.auth-page__eyebrow {
    margin-bottom: 8px;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.auth-page__welcome h1 {
    color: var(--text-primary);
    font-size: clamp(22px, 5.8vw, 26px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.auth-page__subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.auth-page__card {
    padding: 24px;
    border: 1px solid #e5ece7;
    border-radius: 24px;
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
}

.auth-page__step {
    margin-bottom: 8px;
    color: var(--brand-green);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.auth-page__heading {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.auth-page__lead {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.auth-page__lead strong {
    color: var(--text-primary);
    white-space: nowrap;
}

.auth-page__label {
    display: block;
    margin: 24px 0 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.auth-page__field {
    position: relative;
}

.auth-page__field-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    color: var(--text-secondary);
    transform: translateY(-50%);
    pointer-events: none;
}

/* 明確提供高度與內距，避免共用 input reset 讓手機框退回扁平的原生尺寸。 */
.auth-page .auth-page__input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 16px 16px 16px 50px;
    border: 1px solid #d5ded9;
    border-radius: var(--radius-md);
    background: #f8faf9;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.auth-page .auth-page__input::placeholder {
    color: #7c8881;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.auth-page .auth-page__input:focus {
    border-color: var(--action-blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.1);
    outline: none;
}

.auth-page__field:focus-within .auth-page__field-icon {
    color: var(--action-blue);
}

.auth-page .auth-page__input--code {
    letter-spacing: 0.24em;
}

.auth-page__hint {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.auth-page .auth-page__button {
    min-height: 54px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

.auth-page .auth-page__button:focus-visible {
    outline: 2px solid var(--action-blue-dark);
    outline-offset: 4px;
}

.auth-page .auth-page__button.btn-disabled {
    background: #edf0f2;
    color: #687780;
}

.auth-page .auth-page__button + .auth-page__button {
    margin-top: 12px;
}

.auth-page .auth-page__button--secondary {
    background: var(--bg-white);
    color: var(--action-blue-dark);
    box-shadow: inset 0 0 0 1px #c7dfe9;
}

.auth-page .auth-page__button--secondary:hover:not(:disabled) {
    background: #f0f8fc;
}

.auth-page .auth-page__button--text {
    min-height: 44px;
    margin-top: 8px;
    padding: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth-page .auth-page__button[disabled] {
    cursor: not-allowed;
}

.auth-page .auth-page__button--secondary[disabled] {
    color: var(--text-secondary);
    background: var(--bg-body);
    box-shadow: inset 0 0 0 1px #e2e8ec;
}

.auth-page__registration-note {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.auth-page .auth-page__error:not(:empty) {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--card-bg-pink);
    color: var(--card-text-pink);
    line-height: 1.6;
}

.auth-page__terms-notice {
    margin: 24px 8px 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

.auth-page__terms-link {
    color: var(--action-blue-dark);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-page__terms-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (min-width: 481px) {
    .main-container.auth-page {
        flex: none;
        min-height: auto;
        margin: 32px auto;
        padding: 36px 32px 24px;
    }

    .auth-page__navbar {
        margin-top: 28px;
    }
}

@media (max-width: 360px) {
    .main-container.auth-page {
        padding: 24px 16px;
    }

    .auth-page__card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page .auth-page__input,
    .auth-page .auth-page__button {
        transition: none;
    }
}

