/* ── 로그인 모달: 좌(로고/블랙) + 우(폼/화이트) 2단 레이아웃 ── */
.auth-modal-dialog {
    max-width: 760px;
}
.auth-modal-content {
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(var(--text-rgb), 0.06), 0 24px 64px rgba(var(--text-rgb), 0.14);
    min-height: 460px;
}
.auth-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    z-index: 5;
}
.auth-modal-brand {
    flex: 0 0 260px;
    background: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-modal-brand-logo {
    width: 130px;
    filter: brightness(0) invert(1);
}
.auth-modal-form-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 640px) {
    .auth-modal-content { flex-direction: column; min-height: 0; }
    .auth-modal-brand { flex: 0 0 96px; }
    .auth-modal-brand-logo { width: 96px; }
}

/* ── 탭 행 ── */
#authTabsRow {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* ── 탭 ── */
.auth-tab {
    background: none;
    border: none;
    padding: 4px 0 10px;
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    letter-spacing: -0.3px;
    transition: color .18s, border-color .18s;
}
.auth-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.auth-tab:hover:not(.active) {
    color: var(--text-muted);
}

/* ── 뒤로가기 행 ── */
#authBackRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 2px;
}
#authBackRow button {
    background: none;
    border: none;
    padding: 4px 0 10px;
    font-size: var(--fs-13);
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    letter-spacing: -0.1px;
    opacity: .8;
    transition: opacity .15s;
    font-family: inherit;
}
#authBackRow button:hover { opacity: 1; }

/* ── 폼 필드 ── */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.auth-field label {
    font-size: var(--fs-12);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.auth-field input {
    border: 1.5px solid var(--text);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: var(--fs-16);
    color: var(--text);
    outline: none;
    background: #fff;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.auth-field input::placeholder {
    color: var(--text-muted);
}
.auth-field input:focus {
    border-color: var(--text);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--text-rgb), .12);
}

/* ── 제출 버튼 ── */
.auth-submit {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: var(--fs-16);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), .25);
}
.auth-submit:hover {
    background: var(--accent-hover);
}
.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), .2);
}
.auth-submit:disabled {
    background: var(--border);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ── 비밀번호 잊기 링크 ── */
.auth-forgot-link {
    text-align: center;
    margin-top: 14px;
}
.auth-forgot-link button {
    background: none;
    border: none;
    padding: 0;
    font-size: var(--fs-13);
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: color .15s;
}
.auth-forgot-link button:hover {
    color: var(--accent);
}

/* ── 알림 박스 ── */
.auth-notice {
    border-radius: 8px;
    padding: 11px 14px;
    font-size: var(--fs-14);
    line-height: 1.6;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.auth-notice-error {
    background: var(--danger-tint);
    color: var(--danger);
    border: 1px solid var(--danger);
}
.auth-notice-success {
    background: var(--accent-tint);
    color: var(--accent);
    border: 1px solid var(--accent-tint);
}

/* ── forgot 안내 텍스트 ── */
.auth-hint {
    font-size: var(--fs-14);
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 20px;
}

/* ── SNS 버튼 ── */
.auth-sns-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}
.auth-sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 44px;
    border-radius: 10px;
    font-size: var(--fs-14);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--accent-tint);
    background: var(--bg);
    color: var(--text);
    letter-spacing: -0.2px;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.auth-sns-btn:hover {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
    text-decoration: none;
}
/* 카카오·네이버 브랜드 색상 제거 — 구글과 동일하게 아이콘+텍스트만으로 구분 */

/* ── 구분선 ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 14px;
    color: var(--border);
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--accent-tint);
}

/* ── reset 안내 텍스트 ── */
.auth-reset-hint {
    font-size: var(--fs-14);
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.6;
}
