/* 배경 및 레이아웃 */
.login_body { background: #f8fafc; overflow-x: hidden; }
.bg_animation_wrap { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg_animation_wrap .bg_img { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1610473068533-8743127814c1?q=80&w=2000') center/cover no-repeat; animation: slowZoom 30s infinite alternate ease-in-out; opacity: 0.1; }
.bg_animation_wrap .bg_overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,1) 100%); }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.login_container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.login_container #viewWrapper { min-width: 460px; }

/* 공통 카드 스타일 */
.glass_card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid #fff; border-radius: 2.5rem; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.08); padding: 3.5rem; width: 100%; animation: fadeInUp 0.5s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* 입력 필드 */
.f_row { margin-bottom: 1.25rem; }
.f_row .f_label { font-size: 0.75rem; font-weight: 800; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; padding-left: 2px; }
.f_row .field_h { width: 100%; height: 3.25rem; border: 1px solid #E2E8F0; border-radius: 0.875rem; padding: 0 1.25rem !important; font-size: 0.9375rem; font-weight: 600; background: #F8FAFC; transition: 0.2s; outline: none; box-sizing: border-box; }
.f_row .field_h:focus { border-color: #3B82F6; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.05); }

/* 사이드 버튼 형태 */
.flex_row { display: flex; gap: 8px; }
.flex_row .side_btn { width: 110px; flex-shrink: 0; background: #0F172A; color: #fff; border-radius: 0.875rem; font-size: 0.8125rem; font-weight: 800; transition: 0.2s; border: none; cursor: pointer; }
.flex_row .side_btn:hover { background: #000; }
.flex_row .side_btn.blue { background: #3B82F6; }

/* 계정 찾기 탭 */
.tab_wrap { display: flex; background: #F1F5F9; padding: 4px; border-radius: 12px; margin-bottom: 2rem; }
.tab_wrap .tab_btn { flex: 1; height: 2.5rem; font-size: 0.875rem; font-weight: 800; color: #94A3B8; border-radius: 10px; transition: 0.2s; border: none; cursor: pointer; background: transparent; }
.tab_wrap .tab_btn.active { background: #fff; color: #3B82F6; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* 버튼 */
.btn_primary_full { height: 3.5rem; background: #3B82F6; color: #fff; border-radius: 1rem; font-size: 1rem; font-weight: 800; width: 100%; transition: 0.2s; border: none; cursor: pointer; }
.btn_primary_full:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }

/* 뒤로가기 버튼 */
.back_btn { width: 2.5rem; height: 2.5rem; background: #fff; border: 1px solid #E2E8F0; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: #475569; cursor: pointer; font-size: 1.5rem; }

/* 모달 */
.modal_overlay { position: fixed; inset: 0; background: rgba(30, 27, 75, 0.4); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.3s ease-out; }
.modal_overlay.active { display: flex; }
.modal_overlay .modal_box { background: #fff; border-radius: 2rem; max-width: 70%; min-width: 40%; padding: 2.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.15); animation: scaleIn 0.3s ease-out; position: relative; text-align: center; }
.modal_overlay .modal_box .modal_icon_circle { width: 4.5rem; height: 4.5rem; background: #3B82F6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin: 0 auto 1.5rem; }
.modal_overlay .modal_box .modal_icon_circle img { width: 40px; }
.modal_overlay .modal_box h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; }
.modal_overlay .modal_box .modal_content { font-size: 1rem; color: #64748B; line-height: 1.6; margin-bottom: 2.5rem; }

/* 알림 토스트 */
.toast { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); background: #0F172A; color: #fff; padding: 12px 24px; border-radius: 30px; font-size: 0.875rem; font-weight: 700; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

/* 반응형 */
@media (max-width: 768px) {
    .login_container { padding: 0; }
    .login_container #viewWrapper { min-width: auto; width: 100%; }
    .login_container #viewWrapper .glass_card { width: 90%; margin-left: 5%; padding: 2.5rem 1.5rem; border-radius: 1.5rem; }
    .flex_row .side_btn { width: 90px; font-size: 0.75rem; }
    .modal_overlay .modal_box { max-width: 90%; }
}
