﻿/* =============================================================
   FitManager - 인증 페이지 CSS (라이트 테마)
   ============================================================= */

/* -------------------------------------------------------------
   리셋 & 기본
   ------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.page-auth {
	background: #f1f5f9;
	min-height: 100vh;
	display: flex;
	align-items: stretch;
	font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -------------------------------------------------------------
   좌우 분할 레이아웃
   ------------------------------------------------------------- */
.auth-split {
	display: flex;
	width: 100%;
	min-height: 100vh;
}

/* -------------------------------------------------------------
   좌측: 소개 패널 (다크 유지)
   ------------------------------------------------------------- */
.auth-intro {
	flex: 1 1 52%;
	background: linear-gradient(150deg, #0f172a 0%, #1a2744 50%, #0f2550 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 56px;
	position: relative;
	overflow: hidden;
}

/* 배경 장식 원 */
.auth-intro::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -80px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
	pointer-events: none;
}

.auth-intro::after {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -60px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
	pointer-events: none;
}

/* 로고 */
.intro-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 36px;
}

.intro-logo .logo-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #3b82f6, #6366f1);
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(59,130,246,0.35);
	flex-shrink: 0;
}

.intro-logo .logo-icon i {
	font-size: 20px;
	color: #fff;
}

.intro-logo .logo-text {
	font-size: 20px;
	font-weight: 800;
	color: #f1f5f9;
	letter-spacing: -0.5px;
}

/* 헤드라인 */
.intro-headline {
	font-size: 26px;
	font-weight: 800;
	color: #f1f5f9;
	line-height: 1.35;
	margin-bottom: 10px;
	letter-spacing: -0.5px;
}

.intro-headline .highlight {
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.intro-sub {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 24px;
}

/* 기능 목록 */
.feature-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}

.feature-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.feat-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(59,130,246,0.12);
	border: 1px solid rgba(59,130,246,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.feat-icon i {
	font-size: 14px;
	color: #60a5fa;
}

.feature-list li div {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.feature-list li strong {
	font-size: 13px;
	font-weight: 700;
	color: #e2e8f0;
}

.feature-list li span {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

/* 하이숲 배지 */
.hiforest-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(59,130,246,0.06);
	border: 1px solid rgba(59,130,246,0.2);
	border-radius: 8px;
	padding: 10px 14px;
	flex-wrap: wrap;
}

.hiforest-badge > i {
	color: #34d399;
	font-size: 14px;
}

.hiforest-badge > span {
	font-size: 13px;
	color: #94a3b8;
	flex: 1;
}

.hiforest-badge a {
	font-size: 12px;
	font-weight: 600;
	color: #60a5fa;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.hiforest-badge a:hover {
	color: #93c5fd;
}

.hiforest-badge a i {
	font-size: 10px;
	margin-left: 3px;
}

/* -------------------------------------------------------------
   우측: 폼 패널 (라이트)
   ------------------------------------------------------------- */
.auth-form-wrap {
	flex: 0 0 420px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	border-left: 1px solid #e2e8f0;
}

/* -------------------------------------------------------------
   카드
   ------------------------------------------------------------- */
.auth-card {
	width: 100%;
	max-width: 340px;
}

.auth-card-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 24px;
	letter-spacing: -0.4px;
}

/* -------------------------------------------------------------
   탭 (관리자 / 직원 전환)
   ------------------------------------------------------------- */
.auth-tabs {
	display: flex;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 4px;
	margin-bottom: 24px;
	gap: 4px;
}

.auth-tab {
	flex: 1;
	padding: 8px 12px;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	border: none;
	background: transparent;
	transition: all 0.2s ease;
	font-family: inherit;
}

.auth-tab:hover {
	color: #475569;
}

.auth-tab.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------
   설명 텍스트
   ------------------------------------------------------------- */
.auth-desc {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* -------------------------------------------------------------
   폼 요소
   ------------------------------------------------------------- */
.page-auth .form-group {
	margin-bottom: 14px;
}

.page-auth .form-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
	letter-spacing: 0.3px;
}

.page-auth .form-input {
	width: 100%;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #0f172a;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-auth .form-input::placeholder {
	color: #94a3b8;
}

.page-auth .form-input:focus {
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* 비밀번호 토글 래퍼 */
.input-with-toggle {
	position: relative;
}

.input-with-toggle .form-input {
	padding-right: 44px;
}

.input-with-toggle button {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	line-height: 1;
	transition: color 0.2s;
}

.input-with-toggle button:hover {
	color: #475569;
}

/* -------------------------------------------------------------
   주요 버튼
   ------------------------------------------------------------- */
.btn-auth-primary {
	display: block;
	width: 100%;
	padding: 11px 20px;
	background: #3b82f6;
	color: #fff;
	border: none;
	border-radius: 9px;
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	letter-spacing: 0.2px;
}

.btn-auth-primary:hover {
	background: #2563eb;
	box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}

.btn-auth-primary:active {
	transform: scale(0.99);
}

.btn-auth-primary:disabled {
	background: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
}

/* 보조 버튼 */
.btn-auth-secondary {
	display: block;
	width: 100%;
	padding: 9px 20px;
	background: transparent;
	color: #64748b;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-weight: 500;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	margin-top: 8px;
}

.btn-auth-secondary:hover {
	border-color: #cbd5e1;
	color: #475569;
	background: #f8fafc;
}

/* -------------------------------------------------------------
   오류 / 성공 메시지 박스
   ------------------------------------------------------------- */
.auth-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 13px;
	line-height: 1.5;
}

.auth-error a.subscribe-link {
	display: block;
	margin-top: 8px;
	text-align: center;
	padding: 8px 12px;
	background: #3b82f6;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 12px;
	transition: background 0.2s;
}

.auth-error a.subscribe-link:hover {
	background: #2563eb;
}

.auth-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 13px;
	line-height: 1.5;
}

/* -------------------------------------------------------------
   푸터
   ------------------------------------------------------------- */
.auth-footer {
	margin-top: 28px;
	text-align: center;
	color: #94a3b8;
	font-size: 12px;
	line-height: 1.6;
}

.auth-footer a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

.auth-footer a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------
   반응형: 태블릿 이하 — 좌측 패널 숨김
   ------------------------------------------------------------- */
@media (max-width: 900px) {
	.auth-intro {
		display: none;
	}

	.auth-form-wrap {
		flex: 1;
		border-left: none;
		padding: 40px 24px;
	}
}

@media (max-width: 480px) {
	.auth-form-wrap {
		padding: 32px 20px;
	}

	.auth-card-title {
		font-size: 20px;
	}
}
