/* ── FORM FIELDS ── */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .72rem; font-weight: 600; color: var(--mid); margin-bottom: 5px; }
.fg input, .fg select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--sand); border-radius: 10px; font-size: .84rem; font-family: inherit; color: var(--dark); background: var(--cream); outline: none; transition: border-color .2s; }
.fg input:focus, .fg select:focus { border-color: var(--green); background: #fff; }
.fg input::placeholder { color: var(--muted); }
.fg.error input, .fg.error select { border-color: #e74c3c; }
.fg-err { color: #e74c3c; font-size: .76rem; margin-top: 4px; display: none; }
.fg.error .fg-err { display: block; }

/* ── PASSWORD TOGGLE ── */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 38px !important; }
.pw-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 0; line-height: 1; }
.pw-eye:hover { color: var(--mid); }

/* ── LOGIN BOX ── */
.login-bg { min-height: calc(100vh - 64px); background: linear-gradient(160deg, var(--gp) 0%, var(--beige3) 50%, var(--apricot-lt, #FEF2E8) 100%); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-box { background: #fff; border-radius: 22px; padding: 40px 36px; width: 100%; max-width: 420px; box-shadow: 0 8px 36px rgba(42,30,6,.09); }

/* ── TABS ── */
.l-tabs { display: flex; background: var(--beige2); border-radius: 10px; padding: 3px; margin-bottom: 22px; gap: 3px; }
.l-tab { flex: 1; text-align: center; padding: 9px; border-radius: 8px; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; }
.l-tab.on { background: #fff; color: var(--dark); box-shadow: 0 2px 8px rgba(42,30,6,.08); }

/* ── FORM EXTRAS ── */
.f-extra { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; margin-top: -4px; }
.f-rem { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--mid); cursor: pointer; }
.f-rem input { accent-color: var(--green); }
.f-forgot { font-size: .74rem; color: var(--green); cursor: pointer; font-weight: 500; }

/* ── SUBMIT BUTTON ── */
.btn-submit { width: 100%; padding: 13px; background: var(--amber); color: #fff; border: none; border-radius: 11px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s; margin-bottom: 10px; }
.btn-submit:hover { background: #3A2808; transform: translateY(-1px); }

/* ── SOCIAL LOGIN ── */
.soc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.soc-btn { padding: 10px; border-radius: 10px; border: 1.5px solid var(--sand); background: #fff; font-size: .76rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--mid); }
.soc-btn.kakao { background: #FEE500; border-color: #FEE500; color: #3A1D1D; }
.soc-btn.naver { background: #03C75A; border-color: #03C75A; color: #fff; }

/* ── DIVIDER ── */
.l-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: .72rem; }
.l-divider::before, .l-divider::after { content: ''; flex: 1; height: 1px; background: var(--sand); }

/* ── MISC ── */
.sw-txt { text-align: center; font-size: .76rem; color: var(--muted); }
.sw-txt a { color: var(--green); font-weight: 700; cursor: pointer; }
.success-view { display: none; text-align: center; padding: 16px 0; }
.success-ico { font-size: 3rem; margin-bottom: 12px; display: block; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── 필수항목 별표 ── */
.req { color: #e74c3c; font-size: .8rem; margin-left: 2px; }

/* ── 실시간 검증 상태 ── */
.fg-ok { color: #27ae60; font-size: .76rem; margin-top: 4px; display: none; }
.fg.valid .fg-ok { display: block; }
.fg.valid .fg-err { display: none !important; }
.fg.valid input, .fg.valid select { border-color: #27ae60 !important; }

/* ── 성공 모달 ── */
.sm-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(42,30,6,.52);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    animation: smFadeIn .25s ease;
}
@keyframes smFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sm-box {
    background: #fff;
    border-radius: 26px;
    padding: 52px 44px 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(42,30,6,.22);
    animation: smScaleIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes smScaleIn { from { opacity:0; transform: scale(.88); } to { opacity:1; transform: scale(1); } }

.sm-ico { font-size: 3.4rem; display: block; margin-bottom: 14px; }
.sm-title { font-family: 'Gaegu', cursive; font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }
.sm-msg { font-size: .84rem; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }

.sm-progress { height: 5px; background: var(--beige2); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.sm-bar { height: 100%; background: var(--green); border-radius: 99px; width: 100%; }
.sm-redirect-txt { font-size: .72rem; color: var(--muted); margin-bottom: 18px; }
