/* ============================================================
   Sinwoo 로그인 — to-be 좌우 split 컨셉 + as-is 브랜드컬러(#001a5f / #e9af11)
   본문 IBM Plex Sans KR · 브랜드 Manrope
   ============================================================ */
:root {
	--navy:      #001a5f;   /* 주조색 */
	--navy-dark: #00113f;
	--navy-lite: #0a2f86;
	--gold:      #e9af11;   /* 포인트/호버 */
	--ink:       #1e293b;
	--ink-soft:  #64748b;
	--line:      #cbd5e1;
	--bg:        #f4f6fa;
	--font-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	--font-brand:'Manrope', var(--font-body);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

.login-shell {
	position: relative;
	display: flex;
	min-height: 100dvh;
}

/* 우측 상단 언어 선택 (커스텀 드롭다운) */
.lang-switch { position: absolute; top: 18px; right: 22px; z-index: 5; }
.lang-btn {
	display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 8px; background: #fff;
	font-family: var(--font-body); font-size: 13px; font-weight: 500; color: #334155;
	cursor: pointer; box-shadow: 0 2px 10px rgba(15,23,42,.06); transition: border-color .15s, box-shadow .15s;
}
.lang-btn:hover { border-color: #94a3b8; box-shadow: 0 4px 14px rgba(15,23,42,.10); }
.lang-btn .bi-globe2 { font-size: 15px; color: var(--navy); }
.lang-caret { font-size: 11px; color: #94a3b8; transition: transform .15s; }
.lang-switch:has(.lang-menu.open) .lang-caret { transform: rotate(180deg); }

.lang-menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
	margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid #e7ebf2; border-radius: 10px;
	box-shadow: 0 16px 34px rgba(15,23,42,.14);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { margin: 0; }
.lang-menu a {
	display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 6px;
	font-size: 13px; color: #334155; text-decoration: none; transition: background .12s;
}
.lang-menu a:hover { background: #f1f5f9; }
.lang-menu a.on { background: rgba(0,26,95,.06); color: var(--navy); font-weight: 600; }
.lang-menu .flag { font-size: 16px; line-height: 1; }

/* ───────── 좌: 히어로 ───────── */
.login-hero { display: none; }   /* 모바일 숨김 */

.hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 660px;
	margin: auto;
	padding: 32px 44px;
}

.hero-deco {
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}
.hero-deco--1 { top: -130px; right: -130px; width: 420px; height: 420px; background: rgba(255,255,255,.06); }
.hero-deco--2 { bottom: -150px; left: -90px; width: 380px; height: 380px; background: rgba(255,255,255,.04); }

.hero-brand { display: flex; align-items: center; gap: 12px; }
.hero-logo {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 8px;
	background: #fff; color: var(--navy);
	font-family: var(--font-brand); font-weight: 800; font-size: 20px;
}
.hero-name { font-family: var(--font-brand); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.hero-badge {
	padding: 3px 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
	font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #d9e4ff;
}

.hero-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #9db2e6; }
.hero-title { margin: 0; font-family: var(--font-brand); font-weight: 800; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.25; color: #fff; text-wrap: balance; }
.hero-title-accent { color: var(--gold); }
.hero-desc { margin: 14px 0 0; font-size: clamp(12.5px, 1vw, 14px); line-height: 1.65; color: #c4d1ee; text-wrap: pretty; }

.hero-trust { margin: 0; font-size: 11px; color: #8296c4; }

/* ───────── 우: 폼 ───────── */
.login-panel {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: var(--bg);
}
.panel-top { display: flex; justify-content: center; }
.panel-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel-logo {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
	background: var(--navy); color: #fff; font-family: var(--font-brand); font-weight: 800; font-size: 16px;
}
.panel-name { font-family: var(--font-brand); font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.panel-badge { padding: 2px 8px; border-radius: 999px; background: rgba(0,26,95,.08); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .08em; }

.login-card {
	width: 100%; max-width: 420px; margin: auto;
	background: #fff; border: 1px solid #eef1f6; border-radius: 12px;
	box-shadow: 0 18px 38px rgba(15,23,42,.08);
	padding: 28px;
}
.card-head { margin-bottom: 22px; }
.card-eyebrow { margin: 0 0 8px; font-family: var(--font-brand); font-size: 10px; font-weight: 600; letter-spacing: .28em; color: #94a3b8; }
.card-title { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: #0f172a; }
.card-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.card-form { display: flex; flex-direction: column; }
.field-label { margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #334155; }
.field-input {
	height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px;
	font-family: var(--font-body); font-size: 14px; color: #0f172a; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder { color: #94a3b8; }
.field-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,26,95,.10); }
/* ★2026-07-29 — 브라우저 기본 검증 풍선을 끄면서(authShell 가드) 잘못된 칸 표시를 우리가 맡는다.
   색은 아래 `.form-error` 와 같은 계열이라 새 토큰을 만들지 않았다. */
.field-input.is-invalid { border-color: #dc2626; background: #fff5f5; }
.field-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.10); }

.field-remember { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.remember-check { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
.field-remember label { font-size: 12.5px; color: #475569; cursor: pointer; user-select: none; }

.btn-signin {
	margin-top: 18px; height: 48px; border: none; border-radius: 8px;
	background: var(--navy); color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 600;
	box-shadow: 0 12px 24px rgba(0,26,95,.22); cursor: pointer;
	transition: color .15s, box-shadow .15s;
}
.btn-signin:hover { color: var(--gold); box-shadow: 0 14px 28px rgba(0,26,95,.30); }

.form-error, .form-note, .form-done {
	margin-bottom: 6px; padding: 9px 13px; border-radius: 8px; font-size: 12.5px;
}
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.form-note  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.form-done  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; line-height: 1.55; }

/* ───────── 비밀번호 재설정 화면 부품 ───────── */
/* 폼 하단 보조 링크(비밀번호 찾기 / 로그인으로 돌아가기) */
.card-links {
	display: flex; justify-content: center; gap: 14px;
	margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0;
}
.card-link {
	font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
	transition: color .15s;
}
.card-link:hover { color: var(--navy); text-decoration: underline; }

/* 입력 규칙 안내(비밀번호 정책) — 필드 바로 아래 */
.field-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: #94a3b8; }

/* 재설정 대상 계정 표시 — 어떤 계정을 바꾸는지 못 헷갈리게 */
.target-account {
	margin: 0 0 4px; padding: 9px 13px; border-radius: 8px;
	background: #f8fafc; border: 1px solid #e2e8f0;
	font-size: 12.5px; color: var(--ink); word-break: break-all;
}
.target-account strong { font-weight: 600; }

.panel-footer { text-align: center; color: #94a3b8; }
.panel-footer p { margin: 2px 0; font-size: 10.5px; }
.footer-company { font-family: var(--font-brand); font-weight: 600; letter-spacing: .1em; color: var(--ink-soft); }
.footer-copy { margin-top: 6px; }

/* ───────── 반응형: lg 이상 좌우 split ───────── */
@media (min-width: 1024px) {
	.login-hero {
		display: flex; position: relative; overflow: hidden;
		flex: 0 0 56%;
		background:
			radial-gradient(circle at 82% 18%, rgba(10,47,134,.55), transparent 40%),
			linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 58%, var(--navy-lite) 100%);
	}
	.login-panel { flex: 0 0 44%; padding: 40px; }
	.panel-brand { display: none; }   /* 데스크탑은 히어로에 브랜딩 있으니 폼쪽 숨김 */
}

@media (min-width: 1024px) and (min-height: 720px) {
	.login-shell { height: 100dvh; overflow: hidden; }
}

/* ── 비밀번호 «표시/숨김» 토글 (2026-07-29) ──────────────────────────
   Edge 가 그리던 눈 아이콘을 우리 것으로 바꾼다(authShell 인라인 스크립트가 붙인다).
   ★`.card-form` 이 flex column 이라 입력칸이 flex 자식이다 → 감싼 span 도 flex 로 두고
     입력칸이 남는 폭을 먹게 한다. 안 그러면 칸이 내용 폭으로 쪼그라든다. */
.sw-pwd-wrap { position: relative; display: flex; align-items: stretch; }
.sw-pwd-wrap > .field-input { flex: 1 1 auto; min-width: 0; padding-right: 44px; }
.sw-pwd-eye {
	position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px;
	display: grid; place-items: center;
	border: 0; background: transparent; color: #94a3b8;
	border-radius: 6px; cursor: pointer; line-height: 1;
}
.sw-pwd-eye:hover { color: var(--navy); }
.sw-pwd-eye .bi { font-size: 16px; }
/* 브라우저 눈 아이콘 제거 — 우리 토글이 생긴 뒤에 지운다(Edge 전용) */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
