/**
 * Themeatos Hub login page styles.
 */

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

html.themeatos-hub-login-html,
body.themeatos-hub-login-body {
	margin: 0;
	min-height: 100%;
	font-family: var(--themeatos-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--themeatos-text, #0f172a);
	background: #0b1220;
}

/* Apply branding font across the whole login UI (titles, labels, inputs, buttons). */
.themeatos-hub-login,
.themeatos-hub-login input,
.themeatos-hub-login button,
.themeatos-hub-login select,
.themeatos-hub-login textarea {
	font-family: var(--themeatos-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

.themeatos-hub-login {
	min-height: 100vh;
}

.themeatos-hub-login-layout {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: 100vh;
}

.themeatos-hub-login-brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3rem;
	color: #fff;
	background:
		radial-gradient(circle at top left, color-mix(in srgb, var(--themeatos-primary, #0f766e) 55%, transparent), transparent 55%),
		linear-gradient(160deg, #0b1220 0%, #111827 55%, color-mix(in srgb, var(--themeatos-primary, #0f766e) 35%, #0b1220) 100%);
}

.themeatos-hub-login-brand-name {
	margin: 0;
	font-size: 2rem;
	font-weight: 650;
	letter-spacing: -0.02em;
}

.themeatos-hub-login-brand-tagline {
	margin: 0.75rem 0 0;
	max-width: 24rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.themeatos-hub-login-copy {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
}

/* Right column: flat white plane — no card chrome. */
.themeatos-hub-login-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 2rem;
	border: 0;
	box-shadow: none;
	background: #fff;
}

.themeatos-hub-login-card {
	width: 100%;
	max-width: 420px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.themeatos-hub-login-header h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 650;
}

.themeatos-hub-login-header p {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--themeatos-text-muted, #64748b);
}

/* Plain error text — no pink bordered banner. */
.themeatos-hub-login-alert {
	display: block;
	margin: 1.75rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.875rem;
	line-height: 1.45;
}

/* Keep [hidden] working even if display is set above. */
.themeatos-hub-login-alert[hidden] {
	display: none !important;
}

.themeatos-hub-login-alert.is-danger {
	color: #b91c1c;
	background: transparent;
	border: 0;
}

/* Extra air below a visible error before social / form. */
.themeatos-hub-login-alert:not([hidden]) + .themeatos-hub-login-social,
.themeatos-hub-login-alert:not([hidden]) + .themeatos-hub-login-form,
.themeatos-hub-login-alert:not([hidden]) + .themeatos-hub-login-disabled {
	margin-top: 1.75rem;
}

.themeatos-hub-login-social {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.themeatos-hub-login-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	color: #0f172a;
	background: #fff;
	text-decoration: none;
	font-weight: 600;
}

.themeatos-hub-login-social-btn.is-apple {
	color: #fff;
	background: #111827;
	border-color: #111827;
}

.themeatos-hub-login-divider {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.75rem;
	align-items: center;
	margin: 1.5rem 0;
	color: #94a3b8;
	font-size: 0.75rem;
	font-weight: 600;
}

.themeatos-hub-login-divider::before,
.themeatos-hub-login-divider::after {
	content: "";
	height: 1px;
	background: #e2e8f0;
}

.themeatos-hub-login-form {
	display: grid;
	gap: 0.9rem;
	margin-top: 1.75rem;
}

.themeatos-hub-login-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
}

.themeatos-hub-login-form .themeatos-hub-login-label:not(:first-child) {
	margin-top: 0.35rem;
}

.themeatos-hub-login-input {
	width: 100%;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	font: inherit;
	background: #fff;
}

.themeatos-hub-login-input:focus {
	outline: 2px solid color-mix(in srgb, var(--themeatos-primary, #0f766e) 35%, #fff);
	border-color: var(--themeatos-primary, #0f766e);
}

.themeatos-hub-login-remember {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.65rem 0 0.35rem;
	font-size: 0.875rem;
	color: #475569;
}

.themeatos-hub-login-submit {
	margin-top: 0.5rem;
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	background: var(--themeatos-primary, #0f766e);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.themeatos-hub-login-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.themeatos-hub-login-disabled {
	margin: 1.75rem 0 0;
	color: #64748b;
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.themeatos-hub-login-layout {
		grid-template-columns: 1fr;
	}

	.themeatos-hub-login-brand {
		min-height: 220px;
		padding: 2rem;
	}

	.themeatos-hub-login-copy {
		display: none;
	}
}
