﻿/* ============================================================
   SignBridge — Auth / Login Page
   Split layout (Deep Navy 좌측 + 흰 폼 우측)
   Apple-style minimal. See /DESIGN.md for tokens.
   ============================================================ */

body {
	min-height: 100vh;
	margin: 0;
	background: var(--bg-primary);
}

/* ============================================================
   Split layout container
   ============================================================ */

.auth-split {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* 좌측 brand 섹션 (desktop only) */
.auth-brand {
	display: none;
	flex: 1;
	background: var(--brand);
	color: var(--text-on-brand);
	padding: 56px 48px;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.auth-brand {
		display: flex;
	}
}

/* Brand 배경 장식 (radial glow) */
.auth-brand::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
	pointer-events: none;
	z-index: 0;
}

.auth-brand::after {
	content: '';
	position: absolute;
	bottom: -150px;
	left: -150px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
	pointer-events: none;
	z-index: 0;
}

.auth-brand-content {
	position: relative;
	z-index: 1;
}

/* 로고 */
.auth-brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.auth-brand-logo-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-brand-logo-icon i {
	color: #ffffff;
	font-size: 18px;
}

.auth-brand-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.02em;
}

/* Hero */
.auth-brand-hero {
	max-width: 480px;
}

.auth-brand-hero h1 {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #ffffff;
	margin: 0 0 20px 0;
}

.auth-brand-hero p {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 36px 0;
}

/* Features 리스트 */
.auth-brand-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth-brand-features li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.5;
}

.auth-brand-features i {
	flex-shrink: 0;
	margin-top: 3px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.85);
}

/* Brand footer */
.auth-brand-footer {
	position: relative;
	z-index: 1;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* ============================================================
   우측 form 섹션
   ============================================================ */

.auth-form-side {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--bg-primary);
}

.auth-form-container {
	width: 100%;
	max-width: 400px;
	animation: fadeInUp 0.5s var(--ease);
}

/* 모바일 전용 로고 (desktop 숨김) */
.auth-mobile-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 40px;
}

@media (min-width: 1024px) {
	.auth-mobile-logo {
		display: none;
	}
}

.auth-mobile-logo-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-mobile-logo-icon i {
	color: #ffffff;
	font-size: 18px;
}

.auth-mobile-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

/* 폼 타이틀 */
.auth-form-title {
	font-size: 28px;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: -0.02em;
	margin: 0 0 8px 0;
}

.auth-form-subtitle {
	font-size: 14px;
	color: var(--text-secondary);
	margin: 0 0 36px 0;
}

/* ============================================================
   Floating label input
   ============================================================ */

.input-group {
	position: relative;
	margin-bottom: 18px;
}

.input-group input {
	width: 100%;
	padding: 16px 14px 14px 42px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 15px;
	font-family: inherit;
	transition: border-color var(--duration) var(--ease),
				box-shadow var(--duration) var(--ease);
	min-height: 52px;
}

.input-group input:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-ring);
}

.input-group label {
	position: absolute;
	left: 42px;
	top: 16px;
	color: var(--text-tertiary);
	font-size: 15px;
	pointer-events: none;
	transition: all var(--duration) var(--ease);
	background: var(--bg-primary);
	padding: 0 4px;
}

/* Focus 또는 값 있을 때 label 위로 */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
	top: -8px;
	left: 38px;
	font-size: 12px;
	color: var(--brand);
	font-weight: 500;
}

/* Input 안 아이콘 (label 위치와 분리) */
.input-group-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-tertiary);
	font-size: 15px;
	pointer-events: none;
	z-index: 1;
}

.input-group input:focus ~ .input-group-icon {
	color: var(--brand);
}

/* ============================================================
   Submit 버튼
   ============================================================ */

.auth-submit-btn {
	width: 100%;
	padding: 14px 24px;
	background: var(--brand);
	color: var(--text-on-brand);
	border: 1px solid var(--brand);
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background-color var(--duration) var(--ease),
				box-shadow var(--duration) var(--ease);
	margin-top: 8px;
	min-height: 52px;
}

.auth-submit-btn:hover {
	background: var(--brand-hover);
	border-color: var(--brand-hover);
}

.auth-submit-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--brand-ring);
}

.auth-submit-btn i {
	margin-right: 8px;
}

/* ============================================================
   링크 영역
   ============================================================ */

.auth-form-footer {
	text-align: center;
	font-size: 13px;
	color: var(--text-secondary);
	margin-top: 32px;
}

.auth-form-footer a {
	color: var(--brand);
	text-decoration: none;
	font-weight: 500;
}

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

/* ============================================================
   Animation
   ============================================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
