/* ============================================================
   Auth — css/frontend/pages/auth.css
   ============================================================
   Styles for the auth layout and auth card component.
   Reused by all pages using the auth.php layout.
   ============================================================ */

/* ---------------------------------------------------------
   Auth layout — shared by login, forgot password, etc.
   --------------------------------------------------------- */

/* Brand gradient strip at top of page */
.ce-auth-strip {
	height: 0.25rem;
	background: linear-gradient(to right, var(--ce-color-primary), var(--ce-color-primary-hover));
	flex-shrink: 0;
}

/* Centered main area — fills available space */
.ce-auth-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	/* Padding tightened from --ce-space-lg — accommodates the new alert above the logo */
	padding: var(--ce-space-base);
}

/* Minimal footer */
.ce-auth-footer {
	text-align: center;
	padding: var(--ce-space-base) var(--ce-space-lg);
	color: var(--ce-color-text-muted);
	font-size: var(--ce-font-size-sm);
	flex-shrink: 0;
}

/* Footer contacts row */
.ce-auth-footer__contacts {
	display: flex;
	justify-content: center;
	gap: var(--ce-space-md);
	margin-bottom: var(--ce-space-xs);
}

.ce-auth-footer__link {
	color: var(--ce-color-text-muted);
}

.ce-auth-footer__link:hover {
	color: var(--ce-color-text-link-hover);
}

.ce-auth-footer__link:focus-visible {
	outline: var(--ce-focus-ring);
	outline-offset: var(--ce-focus-ring-offset);
	border-radius: var(--ce-radius-sm);
}


/* ---------------------------------------------------------
   Auth card — shared component for all auth pages
   --------------------------------------------------------- */

.ce-auth-card {
	width: 100%;
	max-width: 24rem;
}

.ce-auth-card__logo {
	display: block;
	/* Bottom margin tightened from --ce-space-xl — accommodates the new alert above */
	margin: 0 auto var(--ce-space-base);
	width: max-content;
}

.ce-auth-card__logo img {
	display: block;
	height: 5rem;
	width: auto;
}

.ce-auth-card__panel {
	background: var(--ce-color-bg-white);
	border-radius: var(--ce-radius-lg);
	box-shadow: var(--ce-shadow-lg);
	padding: var(--ce-space-xl);
}

.ce-auth-card__header {
	text-align: center;
	margin-bottom: var(--ce-space-lg);
}

.ce-auth-card__title {
	font-size: var(--ce-font-size-2xl);
	font-weight: var(--ce-font-weight-bold);
	color: var(--ce-color-text);
	margin: 0 0 var(--ce-space-sm);
}

.ce-auth-card__subtitle {
	font-size: var(--ce-font-size-sm);
	color: var(--ce-color-text-secondary);
	margin: 0;
	line-height: var(--ce-line-height-normal);
}

/* Alert inside the card */
.ce-auth-card__panel .ce-alert {
	margin-bottom: var(--ce-space-base);
}

/* Static notice (e.g. "New design coming soon") — centered, subtle uniform border */
.ce-auth-card__notice {
	border: var(--ce-border-light);
	margin-top: 0;
	margin-bottom: var(--ce-space-base);
	text-align: center;
}

/* Form actions — no divider in auth cards */
.ce-auth-card .ce-form__actions {
	border-top: none;
	padding-top: var(--ce-space-sm);
}

/* Bottom link (Forgot Password?, Back to Sign In) */
.ce-auth-card__link {
	display: block;
	text-align: center;
	margin-top: var(--ce-space-md);
	font-size: var(--ce-font-size-sm);
	color: var(--ce-color-text-link);
}

.ce-auth-card__link:hover {
	color: var(--ce-color-text-link-hover);
}

.ce-auth-card__link:focus-visible {
	outline: var(--ce-focus-ring);
	outline-offset: var(--ce-focus-ring-offset);
	border-radius: var(--ce-radius-sm);
}


/* ---------------------------------------------------------
   Responsive — small screens
   --------------------------------------------------------- */

@media (max-width: 30em) {
	.ce-auth-card__panel {
		padding: var(--ce-space-lg) var(--ce-space-base);
		box-shadow: none;
		border-radius: 0;
	}

	.ce-auth-main {
		padding: var(--ce-space-base);
	}
}
