@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Auth pages — light mint platform look */
.auth-page {
	--accent: #00a857;
	--accent-bright: #00bf63;
	--gold: #c9a227;
	--ink: #122018;
	--muted: #5a6f63;
	--line: rgba(18, 32, 24, 0.1);
	--panel: rgba(255, 255, 255, 0.94);
	--soft: #e7f6ee;
	position: relative;
	isolation: isolate;
	min-height: calc(100vh - 140px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.75rem 0 2.5rem;
	font-family: 'DM Sans', system-ui, sans-serif;
	color: var(--ink);
	background:
		radial-gradient(900px 420px at 12% -10%, rgba(0, 191, 99, 0.2), transparent 55%),
		radial-gradient(700px 380px at 88% 6%, rgba(56, 178, 172, 0.14), transparent 50%),
		linear-gradient(180deg, #eef7f2 0%, #e2f0e8 42%, #d8ebe1 100%);
	overflow: hidden;
}
.auth-page::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.4;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(0, 168, 87, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 168, 87, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 20%, transparent 75%);
}

.auth-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 0 0.75rem;
	animation: auth-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auth-enter {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.auth-card {
	background: var(--panel);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 18px;
	padding: 1.35rem 1.3rem 1.25rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 12px 28px rgba(18, 48, 32, 0.07);
}

.auth-head {
	margin-bottom: 0.35rem;
}
.auth-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-family: Outfit, sans-serif;
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.auth-title i {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #dff7ea, #c8efd9);
	color: var(--accent);
	font-size: 1rem;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}
.auth-sub {
	margin: 0.4rem 0 1.05rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--muted);
}

.auth-group { margin-bottom: 0.9rem; }
.auth-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 0.4rem;
}

.auth-field { position: relative; }
.auth-field > i.auth-ico {
	position: absolute;
	left: 0.8rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	font-size: 0.95rem;
	pointer-events: none;
	transition: color 0.15s ease;
}
.auth-field:focus-within > i.auth-ico { color: var(--accent); }

.auth-input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 0.7rem 0.9rem 0.7rem 2.4rem;
	color: var(--ink);
	font-size: 0.9rem;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input.has-toggle { padding-right: 2.55rem; }
.auth-input:focus {
	outline: none;
	border-color: rgba(0, 168, 87, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 168, 87, 0.12);
}
.auth-input::placeholder { color: #8a9a90; }

.auth-toggle {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--muted);
	cursor: pointer;
	padding: 0.4rem;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1;
}
.auth-toggle:hover {
	color: var(--accent);
	background: var(--soft);
}

.auth-submit {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.78rem 1rem;
	margin-top: 0.2rem;
	border: none;
	border-radius: 12px;
	font-family: Outfit, sans-serif;
	font-size: 0.92rem;
	font-weight: 750;
	background: linear-gradient(135deg, #00bf63, #009a4f);
	color: #fff;
	box-shadow: 0 10px 22px rgba(0, 168, 87, 0.22);
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.auth-submit:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
	color: #fff;
}

.auth-alert {
	border-radius: 11px;
	padding: 0.7rem 0.85rem;
	font-size: 0.84rem;
	margin-bottom: 0.9rem;
	line-height: 1.4;
}
.auth-alert.ok {
	background: rgba(0, 168, 87, 0.1);
	border: 1px solid rgba(0, 168, 87, 0.22);
	color: #0a7a42;
}
.auth-alert.err {
	background: rgba(220, 53, 69, 0.08);
	border: 1px solid rgba(220, 53, 69, 0.22);
	color: #b02a37;
}
.auth-alert.info {
	background: rgba(13, 110, 253, 0.08);
	border: 1px solid rgba(13, 110, 253, 0.2);
	color: #0b5ed7;
}

.auth-ref {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem 0.8rem;
	margin-bottom: 0.9rem;
	border-radius: 11px;
	border: 1px solid rgba(201, 162, 39, 0.28);
	background: rgba(201, 162, 39, 0.1);
	font-size: 0.84rem;
	color: var(--ink);
}
.auth-ref i {
	color: var(--gold);
	font-size: 1rem;
	flex-shrink: 0;
}
.auth-ref b { color: #8a7018; font-weight: 750; }

.auth-footer {
	margin-top: 1.05rem;
	padding-top: 0.95rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	text-align: center;
}
.auth-footer a {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.auth-footer a:hover { color: var(--accent); }
.auth-footer a.primary {
	color: var(--accent);
	font-weight: 700;
}

.auth-dev-link {
	display: block;
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 11px;
	background: linear-gradient(135deg, #00bf63, #009a4f);
	color: #fff !important;
	font-family: Outfit, sans-serif;
	font-weight: 750;
	font-size: 0.9rem;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0, 168, 87, 0.2);
}
.auth-dev-link:hover { filter: brightness(1.04); color: #fff !important; }

@media (max-width: 575.98px) {
	.auth-page { padding: 1.25rem 0 2rem; }
	.auth-card { padding: 1.15rem 1.05rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.auth-wrap { animation: none; }
	.auth-submit:hover { transform: none; }
}
