/* ==========================================================================
   Auth — Login & Join (cotieshop-inspired minimal forms)
   ========================================================================== */

.auth-page {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 0 96px;
}

.auth-page--join {
    max-width: 700px;
}

.auth-card {
    padding: 0 8px;
}

.auth-card__head {
    margin-bottom: 40px;
    text-align: center;
}

.auth-card__title {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.auth-card__desc {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.auth-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: rgba(180, 60, 50, 0.08);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #9a3b32;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-form__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form__section-title {
    margin: 0 0 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-field__label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.auth-field__input,
.auth-field__textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.auth-field__input::placeholder,
.auth-field__textarea::placeholder {
    color: rgba(0, 0, 0, 0.28);
}

.auth-field__input:focus,
.auth-field__textarea:focus {
    border-bottom-color: var(--color-text);
    outline: none;
    box-shadow: 0 1px 0 0 var(--color-text);
}

.auth-field__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.auth-field__hint.is-ok {
    color: #2f6b3a;
}

.auth-field__hint.is-error {
    color: #9a3b32;
}

.auth-field__required {
    margin-right: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #9a3b32;
}

.auth-field__input[readonly],
.auth-field__input:disabled {
    color: var(--color-text-muted);
    cursor: default;
    background: #f4f4f2;
}

.auth-profile__wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-profile__preview {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
}

.auth-profile__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.auth-profile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-profile__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.auth-profile__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-profile__controls .auth-btn {
    width: auto;
    cursor: var(--cursor-pointer);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: var(--cursor-pointer);
    user-select: none;
}

.auth-check__input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-text);
    cursor: var(--cursor-pointer);
}

.auth-check__label {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
}

.auth-check__label a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-check-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 58px;
    padding: 14px 36px;
    border: none;
    background-color: transparent;
    background-image: url('/assets/images/button-basic-stroke.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
    cursor: var(--cursor-pointer);
    transition: transform var(--transition-base);
}

.auth-btn:hover,
.auth-btn:focus-visible {
    background-image:
        url('/assets/images/button-basic-stroke.svg'),
        url('/assets/images/button-basic-fill.svg');
    transform: scale(1.03);
    outline: none;
}

.auth-btn--compact {
    min-width: 160px;
    min-height: 52px;
    font-size: 0.9375rem;
}

.auth-form--modal {
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.32);
}

.auth-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 28px;
    border-radius: 20px;
    background-color: var(--color-bg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}

.auth-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-modal__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.auth-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text);
    cursor: var(--cursor-pointer);
}

.auth-modal__desc {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.auth-find-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.auth-find-steps__item {
    display: none;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.08);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--color-text);
}

.auth-find-steps__item.is-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-find-steps__item.is-active::before {
    content: attr(data-find-step-indicator) " / 3";
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}

.auth-find-step[hidden] {
    display: none !important;
}

.auth-find-email {
    margin: -8px 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.04);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text);
    word-break: break-all;
}

.auth-find-result {
    margin: 0 0 28px;
    padding: 28px 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.03);
    text-align: center;
}

.auth-find-result__label {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.auth-find-result__value {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--color-text);
    word-break: break-all;
}

.auth-find-result__hint {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.auth-field__row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.auth-field__input--grow {
    flex: 1;
    min-width: 0;
}

.auth-field__timer {
    flex-shrink: 0;
    min-width: 118px;
    padding-bottom: 14px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #9a3b32;
}

.auth-field__timer.is-expired {
    color: var(--color-text-muted);
}

.auth-btn--inline {
    flex-shrink: 0;
    min-width: 120px;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 0.8125rem;
}

.auth-btn--ghost {
    background-image: none;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
}

.auth-btn--ghost:hover,
.auth-btn--ghost:focus-visible {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.04);
    transform: none;
}

.auth-btn--check-id {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.75rem;
}

.auth-btn--row-center {
    align-self: center;
}

.auth-text-btn {
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: var(--cursor-pointer);
    transition: color var(--transition-base);
}

.auth-text-btn:hover,
.auth-text-btn:focus-visible {
    color: var(--color-text);
    outline: none;
}

.auth-form__actions--text {
    justify-content: flex-start;
    margin-top: 0;
}

.auth-form__actions--split {
    justify-content: space-between;
    gap: 12px;
}

.auth-form__actions--split .auth-btn {
    min-width: 0;
    flex: 1;
}

body:has(#join-message-modal:not([hidden])),
body.is-auth-modal-open {
    overflow: hidden;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.auth-links__btn {
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    cursor: var(--cursor-pointer);
    transition: color var(--transition-base);
}

.auth-links a:hover,
.auth-links a:focus-visible,
.auth-links__btn:hover,
.auth-links__btn:focus-visible {
    color: var(--color-text);
    outline: none;
}

.auth-links__sep {
    color: rgba(0, 0, 0, 0.2);
}

/* 로그인 페이지는 헤더 전환 애니메이션 제외 */
.site-main:has(.auth-page) {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 768px) {
    .auth-page {
        max-width: none;
        padding: 32px 0 72px;
    }

    .auth-card {
        padding: 0;
    }

    .auth-card__head {
        margin-bottom: 32px;
    }

    .auth-btn {
        width: 100%;
        min-width: 0;
    }

    .auth-form__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-modal {
        padding: 16px;
    }

    .auth-modal__panel {
        width: 100%;
        padding: 24px 20px;
    }

    .auth-field__row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-field__timer {
        padding-bottom: 0;
        text-align: right;
    }

    .auth-btn--inline {
        width: 100%;
        min-width: 0;
    }

    .auth-profile__wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-form__actions--split {
        flex-direction: column;
    }
}

.auth-join-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.auth-join-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.auth-join-steps li span {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.auth-join-steps li.is-active {
    background: var(--color-text);
    color: #fff;
}

.auth-join-steps li.is-done {
    background: rgba(0, 0, 0, 0.12);
    color: var(--color-text);
}

.auth-terms {
    max-height: 280px;
    overflow: auto;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.auth-terms h2 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.auth-terms h2:first-child {
    margin-top: 0;
}

.auth-terms ul {
    margin: 8px 0;
    padding-left: 1.2em;
}

.auth-member-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

.auth-member-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--color-text);
}

.auth-member-type strong {
    font-size: 1.05rem;
}

.auth-member-type span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.auth-member-type:hover,
.auth-member-type:focus-visible {
    border-color: var(--color-text);
    outline: none;
}

.auth-member-type:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

a.auth-btn {
    text-decoration: none;
}

@media (max-width: 640px) {
    .auth-member-types {
        grid-template-columns: 1fr;
    }
}

/* 사용자 로그인 — 홈페이지 본문과 같은 사각형·파란 강조 */
main:has(.auth-page--login) {
    background: #f6f8fb;
}

.auth-page--login {
    max-width: 480px;
    padding: 110px 20px 140px;
}

body:has(.auth-page--login) .auth-card {
    padding: 48px 40px 36px;
    border: 1px solid #e4e8f0;
    background: #fff;
}

body:has(.auth-page--login) .auth-card__title {
    font-family: inherit;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #172033;
}

body:has(.auth-page--login) .auth-card__desc {
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    color: #3a4354;
}

body:has(.auth-page--login) .auth-alert {
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #f7f8fb;
}

body:has(.auth-page--login) .auth-field__label,
body:has(.auth-page--login) .auth-check__label,
body:has(.auth-page--login) .auth-field__hint,
body:has(.auth-page--login) .auth-modal__desc,
body:has(.auth-page--login) .auth-find-email,
body:has(.auth-page--login) .auth-find-result__label,
body:has(.auth-page--login) .auth-find-result__hint,
body:has(.auth-page--login) .auth-field__timer {
    font-family: inherit;
    letter-spacing: -0.02em;
    text-transform: none;
}

body:has(.auth-page--login) .auth-field__label {
    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

body:has(.auth-page--login) .auth-field__input,
body:has(.auth-page--login) .auth-field__textarea {
    padding: 14px 16px;
    border: 1px solid #e4e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #172033;
}

body:has(.auth-page--login) .auth-field__input:focus,
body:has(.auth-page--login) .auth-field__textarea:focus {
    border-color: #3b6dff;
    box-shadow: none;
}

body:has(.auth-page--login) .auth-check__input {
    accent-color: #3b6dff;
}

body:has(.auth-page--login) .auth-check__label {
    font-size: 15px;
    color: #3a4354;
}

body:has(.auth-page--login) .auth-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: #3b6dff;
    background-image: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

body:has(.auth-page--login) .auth-btn:hover,
body:has(.auth-page--login) .auth-btn:focus-visible {
    background: #2f5de6;
    background-image: none;
    transform: none;
}

body:has(.auth-page--login) .auth-btn--ghost {
    border: 1px solid #e4e8f0;
    background: #fff;
    color: #172033;
}

body:has(.auth-page--login) .auth-btn--ghost:hover,
body:has(.auth-page--login) .auth-btn--ghost:focus-visible {
    border-color: #3b6dff;
    background: #f7f8fb;
    color: #3b6dff;
}

body:has(.auth-page--login) .auth-links,
body:has(.auth-page--login) .auth-links__btn {
    font-family: inherit;
    font-size: 15px;
}

body:has(.auth-page--login) .auth-links a,
body:has(.auth-page--login) .auth-links__btn {
    color: #3a4354;
}

body:has(.auth-page--login) .auth-links a:hover,
body:has(.auth-page--login) .auth-links a:focus-visible,
body:has(.auth-page--login) .auth-links__btn:hover,
body:has(.auth-page--login) .auth-links__btn:focus-visible {
    color: #3b6dff;
}

body:has(.auth-page--login) .auth-links__sep {
    color: #e4e8f0;
}

body:has(.auth-page--login) .auth-modal__backdrop {
    background: rgba(12, 20, 36, 0.46);
}

body:has(.auth-page--login) .auth-modal__panel {
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    padding: 32px 32px 28px;
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(12, 20, 36, 0.16);
    overflow-y: auto;
}

body:has(.auth-page--login) .auth-modal__head {
    margin-bottom: 20px;
}

body:has(.auth-page--login) .auth-modal__title,
body:has(.auth-page--login) .auth-find-result__value {
    font-family: inherit;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #172033;
}

body:has(.auth-page--login) .auth-modal__close {
    width: 40px;
    height: 40px;
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #fff;
    font-size: 22px;
    color: #172033;
}

body:has(.auth-page--login) .auth-modal__close:hover,
body:has(.auth-page--login) .auth-modal__close:focus-visible {
    border-color: #3b6dff;
    color: #3b6dff;
}

body:has(.auth-page--login) .auth-modal__desc {
    margin-bottom: 20px;
    font-size: 15px;
    color: #3a4354;
}

body:has(.auth-page--login) #auth-find-password-root [data-find-step="1"] > .auth-field {
    margin-bottom: 10px;
}

body:has(.auth-page--login) .auth-find-choice__label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #172033;
}

body:has(.auth-page--login) .auth-find-choice {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

body:has(.auth-page--login) .auth-find-choice .auth-member-type {
    min-height: 84px;
    padding: 16px 18px;
    border: 2px solid #3b6dff;
    border-radius: 0;
    background: #eef3ff;
    color: #172033;
}

body:has(.auth-page--login) .auth-find-choice .auth-member-type strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1d4ed8;
}

body:has(.auth-page--login) .auth-find-choice .auth-member-type span {
    font-size: 14px;
    color: #3a4354;
}

body:has(.auth-page--login) .auth-find-choice .auth-member-type:hover,
body:has(.auth-page--login) .auth-find-choice .auth-member-type:focus-visible {
    border-color: #1d4ed8;
    background: #3b6dff;
    color: #fff;
    outline: none;
}

body:has(.auth-page--login) .auth-find-choice .auth-member-type:hover strong,
body:has(.auth-page--login) .auth-find-choice .auth-member-type:focus-visible strong,
body:has(.auth-page--login) .auth-find-choice .auth-member-type:hover span,
body:has(.auth-page--login) .auth-find-choice .auth-member-type:focus-visible span {
    color: #fff;
}

body:has(.auth-page--login) .auth-find-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    margin: 0 0 24px;
    border-bottom: 1px solid #e4e8f0;
}

body:has(.auth-page--login) .auth-find-steps__item,
body:has(.auth-page--login) .auth-find-steps__item.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 6px;
    border-radius: 0;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #8b95a7;
}

body:has(.auth-page--login) .auth-find-steps__item.is-active {
    color: #172033;
    box-shadow: inset 0 -2px 0 #3b6dff;
}

body:has(.auth-page--login) .auth-find-steps__item.is-active::before {
    content: none;
}

body:has(.auth-page--login) .auth-find-email,
body:has(.auth-page--login) .auth-find-result {
    border-radius: 0;
    background: #f7f8fb;
}

body:has(.auth-page--login) .auth-find-email {
    border: 1px solid #e4e8f0;
    color: #172033;
}

body:has(.auth-page--login) .auth-find-result {
    border: 1px solid #e4e8f0;
    border-top: 3px solid #3b6dff;
}

body:has(.auth-page--login) .auth-btn--inline,
body:has(.auth-page--login) .auth-form__actions--split .auth-btn {
    width: auto;
    min-height: 52px;
}

body:has(.auth-page--login) .auth-btn--inline {
    min-width: 132px;
    padding: 0 16px;
}

body:has(.auth-page--login) .auth-field__timer {
    padding-bottom: 0;
    align-self: center;
    color: #3b6dff;
}

@media (max-width: 768px) {
    .auth-page--login {
        padding: 28px 16px 48px;
    }

    body:has(.auth-page--login) .auth-card {
        padding: 28px 18px 22px;
    }

    body:has(.auth-page--login) .auth-card__head {
        margin-bottom: 24px;
    }

    body:has(.auth-page--login) .auth-card__title {
        margin-bottom: 8px;
        font-size: 24px;
        line-height: 1.45;
    }

    body:has(.auth-page--login) .auth-card__desc {
        font-size: 15px;
        line-height: 1.75;
    }

    body:has(.auth-page--login) .auth-field__label {
        font-size: 14px;
    }

    body:has(.auth-page--login) .auth-field__input,
    body:has(.auth-page--login) .auth-field__textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    body:has(.auth-page--login) .auth-btn {
        min-height: 48px;
        font-size: 15px;
    }

    body:has(.auth-page--login) .auth-links {
        flex-wrap: wrap;
        gap: 8px 10px;
        margin-top: 20px;
        font-size: 14px;
    }

    body:has(.auth-page--login) .auth-links__btn {
        font-size: 14px;
    }

    body:has(.auth-page--login) .auth-modal__panel {
        padding: 24px 18px 20px;
    }

    body:has(.auth-page--login) .auth-modal__title {
        font-size: 22px;
    }

    body:has(.auth-page--login) .auth-find-steps__item,
    body:has(.auth-page--login) .auth-find-steps__item.is-active {
        font-size: 13px;
    }
}

/* 회원가입 — 넓은 단계형 화면 */
main:has(.auth-page--join) {
    background: #fff;
}

.auth-page--join {
    max-width: 1400px;
    padding: 72px 20px 140px;
}

body:has(.auth-page--join) .auth-card {
    padding: 0;
    border: 0;
    background: transparent;
}

body:has(.auth-page--join) .auth-card__head {
    margin-bottom: 36px;
    text-align: left;
}

body:has(.auth-page--join) .auth-card__title,
body:has(.auth-page--join) .auth-form__section-title,
body:has(.auth-page--join) .auth-terms h2 {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #172033;
}

body:has(.auth-page--join) .auth-card__title {
    font-size: 40px;
}

body:has(.auth-page--join) .auth-card__desc,
body:has(.auth-page--join) .auth-field__hint,
body:has(.auth-page--join) .auth-pwd-checks,
body:has(.auth-page--join) .auth-check__label {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    color: #3a4354;
    letter-spacing: -0.02em;
    text-transform: none;
    white-space: normal;
}

body:has(.auth-page--join) .auth-field__hint.is-ok,
body:has(.auth-page--join) .auth-pwd-checks li.is-ok {
    color: #2f6b3a;
}

body:has(.auth-page--join) .auth-field__hint.is-error,
body:has(.auth-page--join) .auth-pwd-checks li.is-error {
    color: #9a3b32;
}

.auth-pwd-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.auth-pwd-checks li::before {
    content: "· ";
}

body:has(.auth-page--join) .auth-alert {
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #f7f8fb;
}

body:has(.auth-page--join) .auth-modal {
    z-index: 1000020;
}

body:has(.auth-page--join) .auth-modal__panel {
    width: min(100%, 440px);
    padding: 32px 28px 24px;
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(12, 20, 36, 0.16);
}

body:has(.auth-page--join) .auth-modal__title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #172033;
}

body:has(.auth-page--join) .auth-modal__desc {
    margin-bottom: 28px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    color: #172033;
}

body:has(.auth-page--join) .auth-message__actions {
    justify-content: flex-end;
    margin-top: 0;
}

body:has(.auth-page--join) .auth-message__actions .auth-btn {
    min-width: 120px;
}

body:has(.auth-page--join) .auth-join-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 48px;
    border-top: 1px solid #e4e8f0;
    border-bottom: 1px solid #e4e8f0;
}

body:has(.auth-page--join) .auth-join-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-height: 132px;
    padding: 22px 24px 20px;
    border: 0;
    border-right: 1px solid #e4e8f0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #6d7588;
}

body:has(.auth-page--join) .auth-join-steps li:last-child {
    border-right: 0;
}

body:has(.auth-page--join) .auth-join-steps li::before {
    content: "STEP";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #8b93a7;
}

body:has(.auth-page--join) .auth-join-steps li span {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #172033;
}

body:has(.auth-page--join) .auth-join-steps li.is-active {
    background: #f7f8fb;
    color: #172033;
}

body:has(.auth-page--join) .auth-join-steps li.is-active span,
body:has(.auth-page--join) .auth-join-steps li.is-done span {
    color: #3b6dff;
}

body:has(.auth-page--join) .auth-join-steps li.is-done {
    background: transparent;
    color: #3b6dff;
}

body:has(.auth-page--join) .auth-terms {
    border: 1px solid #e4e8f0;
    border-radius: 0;
    background: #f7f8fb;
    color: #3a4354;
}

body:has(.auth-page--join) .auth-terms a {
    color: #3b6dff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:has(.auth-page--join) .auth-field__label {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #172033;
}

body:has(.auth-page--join) .auth-field__required {
    font-size: 15px;
    font-weight: 700;
    color: #d14343;
}

body:has(.auth-page--join) .auth-field__input,
body:has(.auth-page--join) .auth-field__textarea,
body:has(.auth-page--join) select.auth-field__input {
    padding: 14px 16px;
    border: 1px solid #e4e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #172033;
}

body:has(.auth-page--join) .auth-field__input:focus,
body:has(.auth-page--join) .auth-field__textarea:focus {
    border-color: #3b6dff;
    box-shadow: none;
}

body:has(.auth-page--join) .auth-field__row {
    align-items: center;
}

body:has(.auth-page--join) .auth-check__input {
    accent-color: #3b6dff;
}

body:has(.auth-page--join) .auth-btn {
    width: auto;
    min-width: 160px;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: #3b6dff;
    background-image: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

body:has(.auth-page--join) .auth-btn:hover,
body:has(.auth-page--join) .auth-btn:focus-visible {
    background: #2f5de6;
    background-image: none;
    transform: none;
}

body:has(.auth-page--join) .auth-btn--ghost {
    border: 1px solid #e4e8f0;
    background: #fff;
    color: #172033;
}

body:has(.auth-page--join) .auth-btn--ghost:hover,
body:has(.auth-page--join) .auth-btn--ghost:focus-visible {
    border-color: #3b6dff;
    background: #f7f8fb;
    color: #3b6dff;
}

body:has(.auth-page--join) .auth-btn--check-id {
    width: auto;
    min-width: 108px;
    min-height: 50px;
    padding: 0 16px;
    font-size: 15px;
}

body:has(.auth-page--join) .join-policy {
    margin-bottom: 36px;
}

body:has(.auth-page--join) .join-policy .auth-check {
    margin-top: 16px;
}

body:has(.auth-page--join) .auth-terms {
    max-height: 360px;
}

body:has(.auth-page--join) .auth-terms--short {
    max-height: none;
}

body:has(.auth-page--join) .auth-terms h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 800;
    color: #172033;
}

body:has(.auth-page--join) .auth-terms h3:first-child {
    margin-top: 0;
}

body:has(.auth-page--join) .auth-terms p,
body:has(.auth-page--join) .auth-terms li {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.75;
}

body:has(.auth-page--join) .auth-terms ul {
    margin: 0 0 10px;
    padding-left: 1.2em;
}

body:has(.auth-page--join) .auth-form__section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

body:has(.auth-page--join) .auth-form__section > .auth-form__section-title,
body:has(.auth-page--join) .auth-form__section > .auth-field__hint,
body:has(.auth-page--join) .auth-form__section > .auth-field:has(#join-addr-label) {
    grid-column: 1 / -1;
}

body:has(.auth-page--join) .auth-form__actions {
    justify-content: flex-end;
    gap: 12px;
    margin-top: 36px;
}

body:has(.auth-page--join) .auth-form__actions--split .auth-btn {
    flex: 0 0 auto;
}

body:has(.auth-page--join) .auth-member-types {
    gap: 24px;
    margin: 8px 0 0;
}

body:has(.auth-page--join) .auth-member-type {
    align-items: flex-start;
    min-height: 240px;
    padding: 36px 32px;
    border: 1px solid #e4e8f0;
    border-top: 4px solid #3b6dff;
    border-radius: 0;
    background: #fff;
    color: #172033;
    text-align: left;
}

body:has(.auth-page--join) article.auth-member-type .auth-btn {
    margin-top: 28px;
}

body:has(.auth-page--join) button.auth-member-type {
    cursor: pointer;
}

body:has(.auth-page--join) .auth-member-type strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body:has(.auth-page--join) .auth-member-type span {
    color: #3a4354;
}

body:has(.auth-page--join) button.auth-member-type:hover,
body:has(.auth-page--join) button.auth-member-type:focus-visible {
    border-color: #3b6dff;
    background: #f7f8fb;
    outline: none;
}

body:has(.auth-page--join) .auth-form__section-title {
    font-size: 22px;
    border-bottom-color: #e4e8f0;
}

@media (max-width: 768px) {
    .auth-page--join {
        padding: 28px 16px 48px;
    }

    body:has(.auth-page--join) .auth-card {
        padding: 0;
    }

    body:has(.auth-page--join) .auth-card__head {
        margin-bottom: 24px;
    }

    body:has(.auth-page--join) .auth-card__title {
        font-size: 24px;
        line-height: 1.45;
    }

    body:has(.auth-page--join) .auth-card__desc {
        font-size: 15px;
        line-height: 1.75;
    }

    body:has(.auth-page--join) .auth-join-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-bottom: 28px;
    }

    body:has(.auth-page--join) .auth-join-steps li {
        align-items: center;
        gap: 6px;
        min-height: 0;
        padding: 14px 4px 12px;
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
    }

    body:has(.auth-page--join) .auth-join-steps li::before {
        content: none;
    }

    body:has(.auth-page--join) .auth-join-steps li span {
        font-size: 18px;
    }

    body:has(.auth-page--join) .auth-form__section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body:has(.auth-page--join) .auth-form__section-title {
        font-size: 20px;
    }

    body:has(.auth-page--join) .auth-terms {
        max-height: 220px;
    }

    body:has(.auth-page--join) .auth-terms h3 {
        margin: 20px 0 8px;
        font-size: 16px;
    }

    body:has(.auth-page--join) .auth-terms p,
    body:has(.auth-page--join) .auth-terms li {
        font-size: 15px;
        line-height: 1.75;
    }

    body:has(.auth-page--join) .auth-field__label {
        font-size: 14px;
    }

    body:has(.auth-page--join) .auth-field__input,
    body:has(.auth-page--join) .auth-field__textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    body:has(.auth-page--join) .auth-member-types {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body:has(.auth-page--join) .auth-member-type {
        min-height: 0;
        padding: 20px 18px;
    }

    body:has(.auth-page--join) .auth-member-type strong {
        font-size: 16px;
    }

    body:has(.auth-page--join) .join-policy {
        margin-bottom: 24px;
    }

    body:has(.auth-page--join) .auth-form__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 24px;
    }

    body:has(.auth-page--join) .auth-form__actions--split .auth-btn,
    body:has(.auth-page--join) .auth-btn {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }
}
