/* Auth pages — register / login / welcome */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
	--primary: #00a1ff;
	--primary-dark: #0086d6;
	--accent: #00c4ff;
	--ink: #0f2746;
	--ink-soft: #4b5b75;
	--muted: #8a9bb1;
	--line: #e3edf5;
	--soft: #f3faff;
	--green: #00b07a;
	--red: #ff4d6d;
}

body {
	font-family: 'Plus Jakarta Sans', sans-serif;
	color: var(--ink);
	line-height: 1.6;
	background:
		radial-gradient(ellipse at top left, rgba(0,196,255,0.06), transparent 50%),
		radial-gradient(ellipse at bottom right, rgba(0,176,122,0.05), transparent 50%),
		linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
	min-height: 100vh;
}
body.lang-th { font-family: 'Prompt', 'Plus Jakarta Sans', sans-serif; }

/* TopBar */
.auth-topbar {
	background: white;
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
	box-shadow: 0 2px 6px -3px rgba(15,39,70,0.06);
}
.auth-topbar-inner {
	max-width: 1100px; margin: 0 auto;
	padding: 0 24px;
	display: flex; align-items: center; justify-content: space-between;
}
.auth-logo {
	display: flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: 19px;
	color: var(--ink); text-decoration: none;
}
.auth-logo-mark {
	width: 36px; height: 36px;
	background: linear-gradient(135deg, var(--accent), var(--primary));
	border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	color: white; font-size: 15px;
	box-shadow: 0 6px 18px -6px rgba(0,161,255,0.5);
}
.auth-topbar-r { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.auth-topbar-r a {
	color: var(--ink-soft); text-decoration: none; font-weight: 600;
}
.auth-topbar-r a:hover { color: var(--primary-dark); }

/* Main */
.auth-wrap {
	max-width: 640px;
	margin: 50px auto;
	padding: 0 24px;
}
.auth-wrap.wide { max-width: 920px; }

.auth-card {
	background: white;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 48px 52px;
	box-shadow: 0 14px 40px -16px rgba(15,39,70,0.12);
}
.auth-card.compact { padding: 40px 44px; }
.auth-head {
	text-align: center;
	margin-bottom: 32px;
}
.auth-head h1 {
	font-size: 28px; font-weight: 900;
	letter-spacing: -0.5px;
	margin-bottom: 8px;
}
.auth-head p {
	font-size: 15px; color: var(--ink-soft);
}

.auth-section {
	margin-bottom: 24px;
}
.auth-section-title {
	font-size: 11.5px; font-weight: 800;
	color: var(--primary-dark);
	letter-spacing: 1px; text-transform: uppercase;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--line);
}

.auth-grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.auth-grid .col-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .auth-grid { grid-template-columns: 1fr; } }

.auth-field {
	display: flex; flex-direction: column; gap: 6px;
}
.auth-field label {
	font-size: 12.5px; font-weight: 700;
	color: var(--ink-soft);
}
.auth-field label .req { color: var(--red); margin-left: 2px; }
.auth-field input[type=text],
.auth-field input[type=email],
.auth-field input[type=password],
.auth-field input[type=tel],
.auth-field select {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: 9px;
	font-family: inherit; font-size: 14.5px;
	color: var(--ink);
	background: white;
	outline: none;
	transition: all 0.15s;
}
.auth-field input:focus,
.auth-field select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0,161,255,0.12);
}
.auth-field .hint {
	font-size: 11.5px; color: var(--muted);
}

/* Checkbox row */
.auth-check {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px 0;
	font-size: 13.5px;
	color: var(--ink-soft);
	cursor: pointer;
}
.auth-check input[type=checkbox] {
	width: 18px; height: 18px;
	margin-top: 2px;
	accent-color: var(--primary);
	cursor: pointer;
	flex-shrink: 0;
}
.auth-check a {
	color: var(--primary-dark);
	font-weight: 700;
	text-decoration: none;
}
.auth-check a:hover { text-decoration: underline; }

/* Buttons */
.auth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%;
	padding: 14px 22px;
	border-radius: 11px;
	font-family: inherit; font-weight: 800; font-size: 15px;
	border: none; cursor: pointer;
	transition: all 0.18s;
	text-decoration: none;
}
.auth-btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--primary));
	color: white;
	box-shadow: 0 10px 22px -6px rgba(0,161,255,0.55);
}
.auth-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(0,161,255,0.7); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-error {
	background: rgba(255,77,109,0.08);
	border: 1px solid rgba(255,77,109,0.3);
	color: #c81e3f;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	margin-bottom: 20px;
	display: flex; align-items: center; gap: 10px;
}
.auth-error i { font-size: 14px; }

.auth-divider {
	text-align: center;
	margin: 24px 0;
	font-size: 13.5px;
	color: var(--ink-soft);
}
.auth-divider a {
	color: var(--primary-dark);
	font-weight: 800;
	text-decoration: none;
}
.auth-divider a:hover { text-decoration: underline; }

/* Plan select cards */
.plan-cards {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.plan-card {
	border: 2px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
	cursor: pointer;
	transition: all 0.18s;
	position: relative;
	background: white;
}
.plan-card input[type=radio] { display: none; }
.plan-card:hover { border-color: var(--primary); }
.plan-card.selected {
	border-color: var(--primary);
	background: linear-gradient(135deg, #f0faff, #e6f7ff);
	box-shadow: 0 8px 20px -8px rgba(0,161,255,0.3);
}
.plan-card-name {
	font-size: 13px; font-weight: 800;
	color: var(--ink-soft);
	text-transform: uppercase; letter-spacing: 0.8px;
	margin-bottom: 6px;
}
.plan-card.selected .plan-card-name { color: var(--primary-dark); }
.plan-card-price {
	font-size: 18px; font-weight: 900;
	color: var(--ink);
}
.plan-card-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-card-desc {
	font-size: 11.5px; color: var(--ink-soft);
	margin-top: 6px;
}
@media (max-width: 600px) { .plan-cards { grid-template-columns: 1fr; } }


/* Welcome page */
.welcome-hero {
	text-align: center;
	padding: 32px 0;
}
.welcome-emoji {
	font-size: 64px;
	display: block;
	margin-bottom: 16px;
}
.welcome-hero h1 {
	font-size: 32px; font-weight: 900;
	background: linear-gradient(135deg, var(--accent), var(--primary));
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	margin-bottom: 10px;
}
.welcome-hero p { font-size: 16px; color: var(--ink-soft); }

.welcome-info {
	background: linear-gradient(135deg, #f0faff, #e6f7ff);
	border: 1px solid #b9def0;
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.welcome-info-item .label {
	font-size: 11px; font-weight: 800;
	color: var(--primary-dark);
	text-transform: uppercase; letter-spacing: 0.8px;
	margin-bottom: 4px;
}
.welcome-info-item .value {
	font-size: 15px; font-weight: 800;
	color: var(--ink);
}
@media (max-width: 600px) {
	.welcome-info { grid-template-columns: 1fr; gap: 12px; }
}

.welcome-steps {
	background: white;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 24px;
}
.welcome-steps h3 {
	font-size: 16px; font-weight: 800;
	margin-bottom: 16px;
	display: flex; align-items: center; gap: 8px;
}
.welcome-step {
	display: flex; gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.welcome-step:last-child { border-bottom: 0; }
.welcome-step-num {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--primary));
	color: white;
	font-weight: 800; font-size: 13px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.welcome-step-text {
	font-size: 14px; color: var(--ink-soft);
	padding-top: 4px;
}

.welcome-actions {
	display: flex; gap: 10px; flex-wrap: wrap;
	justify-content: center;
}
.welcome-actions a {
	flex: 1; min-width: 140px;
	padding: 12px 18px;
	border-radius: 10px;
	font-weight: 700; font-size: 14px;
	text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	transition: all 0.15s;
}
.welcome-actions .primary {
	background: linear-gradient(135deg, var(--accent), var(--primary));
	color: white;
}
.welcome-actions .ghost {
	background: white;
	color: var(--ink-soft);
	border: 1.5px solid var(--line);
}
.welcome-actions .ghost:hover { background: var(--soft); color: var(--primary-dark); border-color: var(--primary); }
.welcome-actions .primary:hover { transform: translateY(-1px); }
