/* ==========================================================================
   auth.css
   Auth pages: sign in, sign up, password reset. Centered glass card on
   aurora background. Brand mark above the card.
   ========================================================================== */

.auth-page {
	position: relative;
	min-height: calc(100vh - var(--nav-h) - 200px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--s-8) var(--s-4);
	gap: var(--s-6);
}

.auth-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-3);
	text-decoration: none;
	color: var(--text);
}

.auth-brand:hover {
	text-decoration: none;
	color: var(--text);
}

.auth-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--aurora);
	border-radius: var(--r-lg);
	font-size: 28px;
	color: white;
	box-shadow:
		0 8px 32px rgba(239, 68, 68, 0.4),
		inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.auth-brand__word {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #fff 0%, #a8afc1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	padding: var(--s-7);
	background: var(--surface-2);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid var(--border-strong);
	border-radius: var(--r-2xl);
	box-shadow: var(--shadow-lg), var(--inner-hi-strong);
	position: relative;
	overflow: hidden;
}

.auth-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--aurora);
	opacity: 0.6;
}

.auth-title {
	margin: 0 0 var(--s-2);
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}

.auth-subtitle {
	margin: 0 0 var(--s-6);
	font-size: var(--text-sm);
	color: var(--text-2);
	line-height: var(--leading-relaxed);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
}

.auth-field label {
	display: block;
	font-size: var(--text-xs);
	color: var(--text-2);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	font-weight: 600;
}

.auth-input {
	width: 100%;
	height: 46px;
	padding: 0 var(--s-4);
	font-size: var(--text-md);
	color: var(--text);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--inner-hi);
	transition: all var(--dur) var(--ease);
}

.auth-input::placeholder {
	color: var(--text-3);
}

.auth-input:focus {
	outline: none;
	border-color: var(--border-accent);
	background: var(--surface-2);
	box-shadow:
		0 0 0 4px rgba(239, 68, 68, 0.2),
		var(--inner-hi);
}

.auth-button {
	width: 100%;
	height: 46px;
	margin-top: var(--s-2);
	font-size: var(--text-md);
	font-weight: 600;
}

.auth-links {
	margin-top: var(--s-5);
	padding-top: var(--s-5);
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	font-size: var(--text-sm);
	text-align: center;
}

.auth-links a {
	color: var(--text-2);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

.auth-links a:hover {
	color: var(--cyan);
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	margin: var(--s-3) 0;
	font-size: var(--text-xs);
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}
