/*
 * Snow Stream Core - frontend sign in
 * -----------------------------------------------------------------------------
 * Layout only. Colour, spacing, radius, focus ring, button and form-control
 * appearance all come from base.css, which this file depends on.
 *
 * The form is deliberately narrow and centred: it is the one screen a parent
 * may open on a phone in a lift queue, so it has to be readable without any
 * horizontal hunting.
 */

.ssc-auth {
	display: flex;
	flex-direction: column;
	gap: var(--ssc-space-4);
	max-width: 460px;
	margin-inline: auto;
}

.ssc-auth-card {
	padding: var(--ssc-space-6);
	border: 1px solid var(--ssc-line);
	border-radius: var(--ssc-radius);
	background: var(--ssc-surface);
	box-shadow: var(--ssc-shadow-sm);
}

.ssc-auth-card h2,
.ssc-auth-card h3 {
	margin: 0 0 var(--ssc-space-3);
	/* Hestia uppercases headings and the site runs lang="en-US", so Greek
	   capitals would keep their tonos ("ΣΎΝΔΕΣΗ"). */
	text-transform: none;
}

.ssc-auth-intro {
	margin: 0 0 var(--ssc-space-4);
	color: var(--ssc-text-muted);
}

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

.ssc-auth-form label {
	display: block;
	font-weight: 600;
}

.ssc-auth-form input[type="text"],
.ssc-auth-form input[type="email"],
.ssc-auth-form input[type="password"] {
	display: block;
	width: 100%;
	margin-top: var(--ssc-space-1);
	box-sizing: border-box;
}

.ssc-auth-form .ssc-button {
	width: 100%;
}

.ssc-auth-remember {
	display: flex;
	align-items: center;
	gap: var(--ssc-space-2);
	min-height: var(--ssc-tap);
	font-weight: 400;
}

.ssc-auth-links,
.ssc-auth-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ssc-space-4);
	margin: var(--ssc-space-4) 0 0;
}

.ssc-auth-link {
	color: var(--ssc-brand);
	text-decoration: underline;
}

.ssc-auth-secondary {
	background: var(--ssc-brand-softer);
}

.ssc-auth-secondary p {
	color: var(--ssc-text-muted);
}

.ssc-auth-notice,
.ssc-auth-errors {
	margin-bottom: var(--ssc-space-4);
	padding: var(--ssc-space-3) var(--ssc-space-4);
	border: 1px solid var(--ssc-info-border);
	border-radius: var(--ssc-radius-sm);
	background: var(--ssc-info-bg);
}

.ssc-auth-errors {
	border-color: var(--ssc-danger-border);
	background: var(--ssc-danger-bg);
	color: var(--ssc-danger);
}

.ssc-auth-errors ul {
	margin: 0;
	padding-left: 1.1em;
}

/*
 * Signed-out members land on this form inside the dashboard and the gallery,
 * where it sits under an explanatory line rather than on its own page.
 */
.ssc-auth-inline {
	margin-top: var(--ssc-space-4);
}
