/*
 * WatchCert 연결 — 짧은 코드 화면 (로그인 · 회원가입 · 감정서 조회)
 * Astra 화면 안에 들어가므로 .wcb 안쪽만 꾸밉니다.
 * 방향: watchcert.com 과 같은 딥 블랙 + 골드. 본문 18px · 가장 작은 글씨 15px · 버튼 48px + 아이콘.
 */
.wcb {
	--wcb-ink-900: #070a12;
	--wcb-ink-700: #111827;
	--wcb-fg: #f3efe6;
	--wcb-muted: #c9cfd9;
	--wcb-gold-300: #e8ce84;
	--wcb-gold-400: #dcb94f;
	--wcb-gold-500: #c9a227;
	--wcb-gold-600: #a8861c;
	--wcb-line: rgba(232, 206, 132, 0.24);
	--wcb-field: rgba(7, 10, 18, 0.72);
	--wcb-success: #6cc3a0;
	--wcb-info: #8fb4e8;
	--wcb-warning: #e6c46a;
	--wcb-danger: #e79a8f;
	--wcb-serif: "Noto Serif KR", "Nanum Myeongjo", AppleMyungjo, Batang, Georgia, serif;

	max-width: 560px;
	margin: 0 auto;
	color: var(--wcb-fg);
	font-size: 18px;
	line-height: 1.6;
}

.wcb *,
.wcb *::before,
.wcb *::after { box-sizing: border-box; }

.wcb-icon { width: 1.25em; height: 1.25em; flex: none; }

/* 상자 */
.wcb-panel {
	position: relative;
	display: grid;
	gap: 22px;
	padding: 44px 40px 36px;
	border: 1px solid var(--wcb-line);
	border-radius: 28px;
	background:
		radial-gradient(90% 55% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 70%),
		linear-gradient(180deg, var(--wcb-ink-700), var(--wcb-ink-900));
	box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(232, 206, 132, 0.12);
}
.wcb-panel::before {
	content: "";
	position: absolute;
	inset: 0 18% auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wcb-gold-400), transparent);
}

/* 머리: 금색 원 문장 + 명조 제목 (가운데) */
.wcb-head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.wcb .wcb-title {
	margin: 0;
	font-family: var(--wcb-serif);
	font-size: 2.1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: #f8f3e6;
}
.wcb-lead { margin: 6px 0 0; color: var(--wcb-muted); font-size: 1rem; }

.wcb-chip {
	width: 76px; height: 76px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	color: var(--wcb-gold-300);
	border: 1px solid rgba(232, 206, 132, 0.5);
	background: radial-gradient(circle at 50% 30%, rgba(201, 162, 39, 0.24), rgba(7, 10, 18, 0.6));
	box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.07);
}
.wcb-chip .wcb-icon { width: 34px; height: 34px; stroke-width: 1.6; }

/* 결과 상태 색 (조회 결과 · 알림) */
.wcb-tone-brand   { --wcb-tone: var(--wcb-gold-400); }
.wcb-tone-success { --wcb-tone: var(--wcb-success); }
.wcb-tone-info    { --wcb-tone: var(--wcb-info); }
.wcb-tone-warning { --wcb-tone: var(--wcb-warning); }
.wcb-tone-danger  { --wcb-tone: var(--wcb-danger); }

/* 입력 */
.wcb-form { display: grid; gap: 18px; margin: 0; }
.wcb-field { display: grid; gap: 8px; margin: 0; }
.wcb-label { font-weight: 600; font-size: 1rem; color: var(--wcb-fg); letter-spacing: 0.02em; }
.wcb-help { color: var(--wcb-muted); font-size: 15px; }

.wcb-input { position: relative; display: block; }
.wcb-input .wcb-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--wcb-gold-400); pointer-events: none; }
.wcb .wcb-input input {
	width: 100%; height: 58px; margin: 0;
	padding: 0 16px 0 52px;
	font: inherit; font-size: 18px; color: #fff;
	background: var(--wcb-field);
	border: 1px solid var(--wcb-line);
	border-radius: 14px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.wcb .wcb-input input::placeholder { color: rgba(201, 207, 217, 0.55); }
.wcb .wcb-input input:focus {
	outline: none;
	border-color: var(--wcb-gold-400);
	background: var(--wcb-field);
	box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
/* 브라우저 자동완성 때 흰 바탕이 되지 않게 */
.wcb .wcb-input input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 100px #0b101b inset;
	caret-color: #fff;
}

.wcb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: var(--wcb-muted); cursor: pointer; }
.wcb-check input { width: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--wcb-gold-500); }

/* 버튼 */
.wcb .wcb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 24px;
	font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em;
	border-radius: 999px; cursor: pointer; text-decoration: none;
	transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.wcb .wcb-btn--fill {
	color: #1a1405; border: 0;
	background: linear-gradient(135deg, var(--wcb-gold-300), var(--wcb-gold-500) 55%, var(--wcb-gold-600));
	box-shadow: 0 16px 34px -14px rgba(201, 162, 39, 0.75);
}
.wcb .wcb-btn--fill:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(201, 162, 39, 0.9); color: #1a1405; }
.wcb .wcb-btn--line {
	color: var(--wcb-gold-300);
	background: rgba(201, 162, 39, 0.05);
	border: 1px solid rgba(232, 206, 132, 0.45);
}
.wcb .wcb-btn--line:hover { color: #fff; border-color: var(--wcb-gold-400); background: rgba(201, 162, 39, 0.14); }
.wcb a.wcb-btn,
.wcb a.wcb-btn:hover { text-decoration: none !important; }
.wcb .wcb-btn--block { width: 100%; min-height: 60px; font-size: 1.125rem; letter-spacing: 0.08em; }
.wcb .wcb-btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

.wcb-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

/* 알림 */
.wcb-notice {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 14px 16px; border-radius: 14px; font-weight: 600;
	border: 1px solid;
}
.wcb-notice .wcb-icon { margin-top: 3px; }
.wcb-notice--error { color: var(--wcb-danger); background: rgba(180, 87, 79, 0.14); border-color: rgba(231, 154, 143, 0.45); }
.wcb-notice--ok    { color: var(--wcb-success); background: rgba(75, 165, 133, 0.12); border-color: rgba(108, 195, 160, 0.4); }

/* 로그인된 회원 줄 */
.wcb-member {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	padding: 14px 14px 14px 18px; border-radius: 16px;
	background: rgba(201, 162, 39, 0.07);
	border: 1px solid var(--wcb-line);
}
.wcb-member > .wcb-icon { color: var(--wcb-gold-300); }
.wcb-member > span { flex: 1; min-width: 12em; }

/* 로그인 안내 (감정서 조회 전) */
.wcb-gate {
	display: flex; gap: 14px; align-items: center;
	padding: 18px; border-radius: 16px;
	background: rgba(201, 162, 39, 0.06);
	border: 1px solid var(--wcb-line);
}
.wcb-gate .wcb-icon { width: 36px; height: 36px; color: var(--wcb-gold-300); }
.wcb-gate p { margin: 0; }

/* 접기 (비밀번호 찾기 등) */
.wcb-more { border-top: 1px solid rgba(232, 206, 132, 0.14); padding-top: 18px; text-align: center; }
.wcb-more summary {
	display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
	min-height: 46px; padding: 0 20px; border-radius: 999px;
	font-weight: 600; color: var(--wcb-gold-300);
	border: 1px solid rgba(232, 206, 132, 0.4);
	background: rgba(201, 162, 39, 0.05);
	list-style: none;
}
.wcb-more summary:hover { color: #fff; border-color: var(--wcb-gold-400); }
.wcb-more summary::-webkit-details-marker { display: none; }
.wcb-more[open] summary { margin-bottom: 18px; }
.wcb-more > :not(summary) { text-align: left; }

/* 감정서 조회 결과 */
.wcb-result { display: grid; gap: 16px; border-top: 1px dashed var(--wcb-line); padding-top: 22px; }
.wcb-result__top {
	display: flex; gap: 14px; align-items: center;
	padding: 18px; border-radius: 16px;
	color: var(--wcb-tone);
	background: color-mix(in srgb, var(--wcb-tone) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--wcb-tone) 45%, transparent);
}
.wcb-result__top .wcb-icon { width: 40px; height: 40px; }
.wcb-result__top strong { display: block; font-size: 1.25rem; color: var(--wcb-fg); }
.wcb-badge {
	display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px;
	font-weight: 800; color: #1a1405; background: var(--wcb-tone);
}

.wcb-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.wcb-dl div { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(232, 206, 132, 0.12); border-radius: 12px; padding: 12px 14px; }
.wcb-dl dt { font-size: 15px; color: var(--wcb-muted); font-weight: 600; }
.wcb-dl dd { margin: 2px 0 0; font-weight: 700; color: var(--wcb-fg); word-break: break-all; }

.wcb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wcb-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--wcb-line); display: block; }

.wcb a:not(.wcb-btn) { color: var(--wcb-gold-300); }

.wcb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
	.wcb-panel { padding: 32px 18px 24px; border-radius: 20px; }
	.wcb-chip { width: 64px; height: 64px; }
	.wcb-chip .wcb-icon { width: 28px; height: 28px; }
	.wcb .wcb-title { font-size: 1.7rem; }
	.wcb-dl { grid-template-columns: 1fr; }
}
