/* 로그인 페이지 — 독립 스타일 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    background: #0a0a0f;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ─── 배경 홀로그래픽 효과 ─── */
.login-bg {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.login-bg .orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}
.login-bg .orb-1 {
    width: 500px; height: 500px; bottom: -150px; right: -100px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #f368e0);
}
.login-bg .orb-2 {
    width: 400px; height: 400px; top: -100px; left: -50px;
    background: linear-gradient(135deg, #48dbfb, #0abde3, #10ac84);
    animation-delay: -3s;
}
.login-bg .orb-3 {
    width: 300px; height: 300px; top: 30%; left: 60%;
    background: linear-gradient(135deg, #feca57, #ff9ff3, #54a0ff);
    animation-delay: -5s; opacity: 0.25;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ─── 카드 ─── */
.login-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px; margin: 1rem;
    background: rgba(30, 30, 45, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* ─── 탭 스위처 ─── */
.tab-switcher {
    display: flex; background: rgba(255,255,255,0.06);
    border-radius: 9999px; padding: 3px; margin-bottom: 1.5rem;
}
.tab-switcher button {
    flex: 1; padding: 0.5rem 0; border: none; border-radius: 9999px;
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    background: transparent; color: #64748b;
    transition: all 0.25s;
}
.tab-switcher button.active {
    background: rgba(255,255,255,0.12); color: #f8fafc;
}
.tab-switcher button:hover:not(.active) { color: #94a3b8; }

/* ─── 탭 패널 ─── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── 타이틀 ─── */
.panel-title {
    font-size: 1.375rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.25rem;
}
.panel-subtitle {
    font-size: 0.8125rem; color: #64748b; margin-bottom: 1.5rem;
}

/* ─── 폼 필드 ─── */
.login-field { margin-bottom: 0.875rem; }
.login-field label {
    display: block; font-size: 0.75rem; font-weight: 500;
    color: #94a3b8; margin-bottom: 0.3rem;
}
.login-field input,
.login-field select {
    width: 100%; padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.6rem; color: #f1f5f9;
    font-size: 0.875rem; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
.login-field select option { background: #1e1e2d; color: #f1f5f9; }
.login-field input::placeholder { color: #475569; }
.login-field input:focus,
.login-field select:focus {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.field-msg {
    font-size: 0.7rem; margin-top: 0.2rem; color: #fca5a5;
}
.field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}

/* ─── 옵션 행 ─── */
.login-options {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; font-size: 0.8125rem;
}
.login-remember {
    display: flex; align-items: center; gap: 0.375rem;
    color: #94a3b8; cursor: pointer;
}
.login-remember input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: #3b82f6; cursor: pointer;
}

/* ─── 버튼 ─── */
.btn-submit {
    width: 100%; padding: 0.7rem;
    background: #f8fafc; color: #0f172a;
    border: none; border-radius: 0.6rem;
    font-size: 0.9375rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: #e2e8f0; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-submit .spinner {
    display: none; width: 18px; height: 18px;
    border: 2px solid transparent; border-top-color: #0f172a;
    border-radius: 50%; animation: spin 0.6s linear infinite;
    margin: 0 auto;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 에러/성공 박스 ─── */
.msg-box {
    display: none; padding: 0.6rem 0.8rem; margin-bottom: 0.875rem;
    border-radius: 0.5rem; font-size: 0.8125rem;
}
.msg-box.error {
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5;
}
.msg-box.success {
    background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2); color: #86efac;
}
.msg-box.show { display: block; }

/* ─── 구분선 ─── */
.divider {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 1.25rem 0; color: #475569; font-size: 0.75rem;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}

/* ─── Google 버튼 ─── */
.btn-google {
    width: 100%; padding: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.6rem;
    font-size: 0.875rem; font-weight: 500; color: #f1f5f9;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-google:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── 안내 문구 ─── */
.login-info {
    display: flex; align-items: flex-start; gap: 0.4rem;
    margin-top: 0.75rem; font-size: 0.7rem; color: #64748b;
}
.login-info svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #3b82f6; }

/* ─── 하단 ─── */
.login-footer {
    text-align: center; margin-top: 1.25rem;
    font-size: 0.7rem; color: #475569;
}
