/* ====================================================================
   auth.css - the signed-out pages: login, sign up, forgotten/reset password,
   accept invite, and the two admin routes that use the same shell
   (www/admin/login.php, www/admin/invite.php). Loaded under
   UI_Layout::AuthHeader()'s shell only.
   Split out of app.css (stage 4); .auth-title/.auth-sub/.auth-footer live in
   base.css instead, because UI_Error uses them under the signed-in shell.
   ==================================================================== */

/* ====================================================================
   SIGNED-OUT PAGES
   ==================================================================== */
/* .auth-title, .auth-sub and .auth-footer from this section are in base.css:
   error.php uses them under the signed-in shell, which never loads this file. */

.auth-page {
	min-height: 100vh;
}

.auth-shell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: var(--spacing-5xl) var(--spacing-3xl);
}

.auth-brand {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-4xl);
}

.auth-brand-area {
	padding-left: var(--spacing-lg);
	border-left: 1px solid var(--color-border-dark);
	color: var(--color-text-secondary);
	font-size: var(--font-size-lg);
	font-weight: 500;
	line-height: 1.4;
}

/* No border: the demo's .settings-card is a shadowed box with none (see .card above), and
   .auth-card is its own rule rather than sharing .card, so it needs the same fix said fixed
   there. */
.auth-card {
	width: 100%;
	max-width: 460px;
	padding: var(--spacing-5xl);
	border-radius: var(--radius-lg);
	background: var(--color-bg-card);
	box-shadow: var(--shadow-base);
}

.auth-form {
	margin: 0;
}

/* The sign-up form's Terms of Use / Privacy Policy line, the same look as the app's register
   page (p.terms in its register.css): small, muted, centred, links in the brand red. */
.auth-terms {
	margin: 0 0 var(--spacing-xl) 0;
	color: var(--color-text-secondary);
	font-size: var(--font-size-sm);
	line-height: 1.5;
	text-align: center;
}

.auth-terms a {
	color: var(--color-primary);
	text-decoration: none;
}

.auth-terms a:hover {
	text-decoration: underline;
}

@media (max-width: 720px) {
	.auth-card {
		padding: var(--spacing-4xl) var(--spacing-3xl);
	}
}
