/* Auth pages (login + sign-up + password-request) — scoped to .tpl-auth */
.tpl-auth {
	--au-primary: #009ee0;
	--au-primary-dark: #0284c7;
	--au-ink: #0f172a;
	--au-muted: #64748b;
	--au-border: #e2e8f0;
	--au-surface: #ffffff;
	--au-danger: #b91c1c;
	--au-danger-bg: #fef2f2;
	--au-danger-border: #fecaca;
	--au-info: #0369a1;
	--au-info-bg: #f0f9ff;
	--au-info-border: #bae6fd;
	--au-success: #15803d;
	--au-success-bg: #f0fdf4;
	--au-success-border: #bbf7d0;
}

.tpl-auth .auth-shell {
	max-width: 440px;
	margin: 0 auto;
	padding: 44px 20px 64px;
	animation: au-in .2s ease-out;
}

@keyframes au-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tpl-auth .auth-shell { animation: none; }
}

/* ---------- card ---------- */
.tpl-auth .auth-card {
	background: var(--au-surface);
	border: 1px solid var(--au-border);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .08);
	padding: 34px 30px 28px;
	text-align: center;
}

.tpl-auth .auth-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 16px;
	background: var(--au-primary);
	color: #fff;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 158, 224, .28);
}

.tpl-auth .auth-icon-success { background: #22c55e; box-shadow: 0 6px 16px rgba(34, 197, 94, .28); }
.tpl-auth .auth-icon-danger  { background: #ef4444; box-shadow: 0 6px 16px rgba(239, 68, 68, .28); }

.tpl-auth .auth-success,
.tpl-signup-confirm .auth-success { text-align: center; }

.tpl-auth .auth-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	color: var(--au-ink);
}

.tpl-auth .auth-sub {
	margin: 0 0 22px;
	font-size: 13.5px;
	color: var(--au-muted);
}

/* ---------- form ---------- */
.tpl-auth .auth-form { text-align: left; }

.tpl-auth .auth-field {
	position: relative;
	margin-bottom: 14px;
}

.tpl-auth .auth-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--au-ink);
	margin-bottom: 6px;
}
.tpl-auth .auth-label .fa {
	color: var(--au-muted);
	margin-right: 5px;
	font-size: 12px;
}

.tpl-auth .auth-input {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 14px;
	font-size: 14.5px;
	color: var(--au-ink);
	background: #fff;
	border: 1px solid var(--au-border);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tpl-auth .auth-input:focus {
	outline: none;
	border-color: var(--au-primary);
	box-shadow: 0 0 0 3px rgba(0, 158, 224, .18);
}

.tpl-auth .auth-turnstile {
	display: flex;
	justify-content: center;
	margin: 6px 0 14px;
}

.tpl-auth .auth-btn {
	width: 100%;
	height: 48px;
	border: none;
	border-radius: 10px;
	background: var(--au-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 6px;
	transition: background .15s ease, box-shadow .15s ease;
}
.tpl-auth .auth-btn:hover {
	background: var(--au-primary-dark);
	box-shadow: 0 6px 16px rgba(0, 158, 224, .30);
}
.tpl-auth .auth-btn:focus-visible {
	outline: 3px solid rgba(0, 158, 224, .35);
	outline-offset: 2px;
}

.tpl-auth .auth-links {
	text-align: center;
	margin-top: 16px;
}

.tpl-auth .auth-link-muted {
	font-size: 13px;
	color: var(--au-muted);
	text-decoration: none;
}
.tpl-auth .auth-link-muted:hover { color: var(--au-primary-dark); }

/* ---------- alerts ---------- */
.tpl-auth .auth-alert {
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13.5px;
	margin: 0 0 16px;
	text-align: left;
}
.tpl-auth .auth-alert p { margin: 0 0 4px; }
.tpl-auth .auth-alert p:last-child { margin-bottom: 0; }

.tpl-auth .auth-alert-danger {
	background: var(--au-danger-bg);
	border: 1px solid var(--au-danger-border);
	color: var(--au-danger);
}
.tpl-auth .auth-alert-info {
	background: var(--au-info-bg);
	border: 1px solid var(--au-info-border);
	color: var(--au-info);
}

/* ---------- success ---------- */
.tpl-auth .auth-success {
	background: var(--au-success-bg);
	border: 1px solid var(--au-success-border);
	border-radius: 12px;
	color: var(--au-success);
	padding: 20px 16px;
	font-size: 14px;
}
.tpl-auth .auth-success p { margin: 0 0 6px; }
.tpl-auth .auth-success p:last-child { margin-bottom: 0; color: #166534; }
.tpl-auth .auth-success-icon { font-size: 34px; margin-bottom: 8px; }

/* ---------- footer ---------- */
.tpl-auth .auth-foot {
	text-align: center;
	font-size: 13.5px;
	color: var(--au-muted);
	margin: 20px 0 0;
}
.tpl-auth .auth-foot a {
	color: var(--au-primary-dark);
	font-weight: 600;
	text-decoration: none;
}
.tpl-auth .auth-foot a:hover { text-decoration: underline; }

/* ---------- validation bubbles ---------- */
.tpl-auth .alert-bubble {
	display: none;
	position: absolute;
	top: -6px;
	right: 10px;
	background: var(--au-danger);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 8px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(185, 28, 28, .3);
}

/* ---------- process-add-place (checkout / thanks) ---------- */
.tpl-process-add-place .auth-shell { max-width: 560px; }

.tpl-auth .order-details {
	border: 1px solid var(--au-border);
	border-radius: 12px;
	padding: 4px 16px;
	margin: 0 0 18px;
	text-align: left;
}
.tpl-auth .order-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	font-size: 14px;
	color: var(--au-muted);
}
.tpl-auth .order-row + .order-row { border-top: 1px solid var(--au-border); }
.tpl-auth .order-row strong { color: var(--au-ink); font-size: 14.5px; }

.tpl-auth .pay-methods { text-align: left; }
.tpl-auth .pay-method {
	border: 1px solid var(--au-border);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	text-align: center;
}
.tpl-auth .pay-btn {
	display: inline-block;
	min-width: 200px;
	height: 46px;
	line-height: 46px;
	padding: 0 24px;
	border: none;
	border-radius: 10px;
	background: var(--au-primary);
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, box-shadow .15s ease;
}
.tpl-auth .pay-btn:hover {
	background: var(--au-primary-dark);
	box-shadow: 0 6px 16px rgba(0, 158, 224, .30);
}
.tpl-auth .pay-method-logo { margin-top: 10px; }
.tpl-auth .pay-method-logo img { opacity: .75; }

@media (max-width: 520px) {
	.tpl-auth .auth-shell { padding: 28px 14px 48px; }
	.tpl-auth .auth-card { padding: 26px 20px 22px; }
	.tpl-auth .pay-btn { width: 100%; min-width: 0; }
}
