/* Auth pages — self-contained styles (no Angular Material) */

.auth-page {
	margin: 0;
	min-height: 100vh;
	background-color: #1e1a1d;
	color: #e9e0e4;
	font-family: Roboto, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

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

.auth-page .shopping-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 64px);
	padding: 48px 24px;
}

.auth-shell {
	width: 100%;
	max-width: 420px;
}

.auth-page .shop-card.auth-card {
	text-align: left;
	padding: 2rem 2rem 1.75rem;
	border: 1px solid #554952;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.auth-card h1 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 500;
	color: #e9e0e4;
	text-align: center;
	line-height: 1.3;
}

.auth-page .shopping-cart p {
	margin: 0;
	text-align: inherit;
	color: inherit;
}

.auth-page .shop-card p.auth-lead {
	margin: 0 0 1.75rem;
	color: #b8aab3;
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: center;
}

.auth-page .shop-card p.auth-lead--compact {
	margin-top: -0.5rem;
	margin-bottom: 1.25rem;
}

.auth-page .shop-card p.auth-message {
	margin: 0 0 1rem;
	color: #d1c2cb;
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: center;
}

.auth-page .shop-card p.auth-message--muted {
	color: #9a8f96;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.auth-lead {
	margin: 0 0 1.75rem;
	color: #b8aab3;
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: center;
}

/* Form reset */
.auth-page form.auth-form {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	min-width: 0;
}

.auth-page .auth-form fieldset {
	margin: 0;
	padding: 0;
	border: none;
	min-width: 0;
}

.auth-page .auth-form .form-row,
.auth-page .auth-form .flex-container {
	display: block;
	margin: 0;
	padding: 0;
}

.auth-form .auth-field {
	margin-bottom: 1.125rem;
}

.auth-form .auth-field:last-of-type {
	margin-bottom: 0;
}

.auth-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #d1c2cb;
	letter-spacing: 0.01em;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.875rem;
	font-size: 1rem;
	font-family: inherit;
	line-height: 1.4;
	color: #e9e0e4;
	background-color: #2a2528;
	border: 1px solid #5c5259;
	border-radius: 8px;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
	border-color: #70616c;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
	outline: none;
	border-color: #8e24aa;
	box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.22);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #2a2528 inset !important;
	-webkit-text-fill-color: #e9e0e4 !important;
	border: 1px solid #5c5259 !important;
	caret-color: #e9e0e4;
	transition: background-color 99999s ease-out 0s;
}

.auth-form input:-webkit-autofill:focus {
	border-color: #8e24aa !important;
}

.auth-field .errorlist {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	color: #ff8a80;
	line-height: 1.4;
}

.auth-field .errorlist li + li {
	margin-top: 0.2rem;
}

.auth-consent {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 1.25rem 0 0;
}

.auth-consent-item {
	display: grid;
	grid-template-columns: 1.15rem 1fr;
	column-gap: 0.7rem;
	align-items: start;
}

.auth-consent-item .errorlist {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	color: #ff8a80;
	line-height: 1.4;
}

.auth-consent-item input[type="checkbox"],
.auth-form input.auth-checkbox {
	appearance: auto;
	-webkit-appearance: checkbox;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0.2rem 0 0;
	accent-color: #8e24aa;
	cursor: pointer;
	flex-shrink: 0;
}

.auth-consent-item label {
	display: block;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	color: #d1c2cb;
	cursor: pointer;
}

.auth-consent-item label a {
	color: #e9a0f0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.auth-consent-item label a:hover,
.auth-consent-item label a:focus {
	color: #f3c4f7;
}

.auth-form .helptext {
	display: block;
	margin-top: 0.5rem;
	padding: 0.65rem 0.75rem;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #9a8f96;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 6px;
}

.auth-form .helptext ul {
	margin: 0.25rem 0 0;
	padding-left: 1rem;
}

.auth-form .helptext li {
	margin-bottom: 0.15rem;
}

.auth-actions {
	margin-top: 1.5rem;
}

.auth-actions--top {
	margin-top: 0.75rem;
}

.auth-page .auth-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0.75rem 1.25rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
	text-decoration: none;
	background: #8e24aa;
	border: 1px solid #8e24aa;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-page .auth-submit:hover {
	background: #9c27b0;
	border-color: #9c27b0;
	color: #fff;
}

.auth-page .auth-submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.35);
}

.auth-links {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #4e444b;
	text-align: center;
	font-size: 0.875rem;
	color: #b8aab3;
}

.auth-page .shopping-cart a:not(.auth-submit):not(.shop-brand):not(.shop-link) {
	color: #ce93d8;
}

.auth-links a {
	color: #ce93d8;
	text-decoration: none;
}

.auth-links a:hover {
	color: #ffabf3;
	text-decoration: underline;
}

.auth-links-sep {
	margin: 0 0.45rem;
	color: #70616c;
}

.auth-alert {
	margin-bottom: 1.25rem;
	padding: 0.75rem 0.875rem;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.45;
}

.auth-alert-error,
.auth-alert.alert-error {
	background: rgba(244, 67, 54, 0.12);
	border: 1px solid rgba(244, 67, 54, 0.35);
	color: #ffcdd2;
}

.auth-alert-success,
.auth-alert.alert-success {
	background: rgba(76, 175, 80, 0.12);
	border: 1px solid rgba(76, 175, 80, 0.35);
	color: #c8e6c9;
}

.auth-brand-logo {
	height: 28px;
	width: auto;
	vertical-align: middle;
	margin-right: 8px;
}

.auth-page .shop-brand {
	display: inline-flex;
	align-items: center;
}

.auth-footer-note {
	margin: 1.5rem 0 0;
	text-align: center;
	font-size: 0.8125rem;
	color: #70616c;
}

@media (max-width: 480px) {
	.auth-page .shopping-cart {
		padding: 32px 16px;
	}

	.auth-page .shop-card.auth-card {
		padding: 1.5rem 1.25rem 1.25rem;
	}
}
