/* ============================================
   인증 페이지 — NFP 브랜드 (진한 초록)
   auth/login.html, auth/signup.html
   ============================================ */

/* ── 배경: 순백 ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 24px;
    position: relative;
    background: var(--bg, #f5f5f7);
}

/* ── 카드 컨테이너 ── */
.auth-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* ── 카드 ── */
.auth-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 40px 36px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
/* 모바일: 화면이 곧 카드다 — 흰 상자·테두리·그림자를 걷어내고 폼만 남긴다 (2026-08-05 지시) */
@media (max-width: 639.98px) {
    .auth-card {
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 24px 8px 16px;
    }
}

/* ── 로고 ── */
.auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.auth-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 22px;
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: .88rem;
    margin-bottom: 32px;
    margin-top: 4px;
    letter-spacing: .2px;
}

/* ── 입력 필드 — float label ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { position: relative; }

.auth-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: .9rem;
    color: #9ca3af;
    pointer-events: none;
    transition: all .2s ease;
    padding: 0 4px;
    background: transparent;
}

.auth-field input {
    width: 100%;
    padding: 16px 14px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: .95rem;
    background: #f9fafb;
    color: #111827;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    box-sizing: border-box;
}
.auth-field input:focus {
    border-color: #1a5c42;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 92, 66, 0.12);
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
    top: 0;
    font-size: .72rem;
    font-weight: 600;
    color: #1a5c42;
    background: white;
    border-radius: 4px;
}

/* ── 로그인 버튼 ── */
.btn-auth {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    background: linear-gradient(135deg, #1a5c42 0%, #0f3d2e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 92, 66, 0.4);
    transition: transform .15s, box-shadow .15s, filter .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn-auth:hover  { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(26, 92, 66, 0.5); }
.btn-auth:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(26, 92, 66, 0.3); }

/* ── 알림 메시지 ── */
.auth-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 500;
    animation: alertPop .25s ease both;
}
@keyframes alertPop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-alert-error   { background: rgba(239,68,68,.08);  color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.auth-alert-success { background: rgba(26,92,66,.08);   color: #1a5c42; border: 1px solid rgba(26,92,66,.2); }

/* ── 하단 링크 ── */
.auth-footer { text-align: center; margin-top: 20px; font-size: .88rem; color: #6b7280; }
.auth-footer a { color: #1a5c42; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.auth-footer a:hover { opacity: .7; }

/* ── 다크모드 ── */
.theme-dark .auth-page {
    background: var(--bg, #1c1c1e);
}
.theme-dark .auth-card {
    background: var(--surface, #2c2c2e);
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.theme-dark .auth-field input {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.1);
    color: #f0fdf4;
}
.theme-dark .auth-field input:focus {
    background: rgba(255,255,255,.08);
    border-color: #34c785;
    box-shadow: 0 0 0 3px rgba(52,199,133,.2);
}
.theme-dark .auth-field label { color: rgba(255,255,255,.4); }
.theme-dark .auth-field input:focus + label,
.theme-dark .auth-field input:not(:placeholder-shown) + label {
    color: #34c785;
    background: #0d2a1e;
}
.theme-dark .auth-subtitle { color: rgba(255,255,255,.5); }
.theme-dark .auth-footer { color: rgba(255,255,255,.4); }
.theme-dark .auth-footer a { color: #34c785; }
.theme-dark .auth-logo { color: #34c785; }
