/**
 * Custom auth pages (/login/, /signup/) — split-screen Smart LMS design.
 * Own full-page stylesheet (not the two-layer page system): these routes
 * render a minimal document, so base tokens are redeclared here.
 */
:root {
	--slms-primary: #1e40af;
	--slms-primary-2: #2563eb;
	--slms-primary-ink: #1e3a8a;
	--slms-ink: #0f172a;
	--slms-text-secondary: #475569;
	--slms-border: #e2e8f0;
	--slms-danger: #ef4444;
	--slms-danger-light: #fef2f2;
	--slms-success: #10b981;
	--slms-success-light: #ecfdf5;
}

.slms-auth-body {
	margin: 0;
	padding: 0;
	font-family: var(--slms-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif) !important;
	background: #f8fafc !important;
	color: #0f172a;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Theme leftovers hardening: any stray #page-container or header from Divi must not shift the shell. */
.slms-auth-body #page-container,
.slms-auth-body #main-header,
.slms-auth-body #et-boc,
.slms-auth-body footer,
.slms-auth-body #main-footer {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
html.slms-auth-html { margin: 0 !important; padding: 0 !important; }

.slms-auth-scope,
.slms-auth-scope * { box-sizing: border-box; }

.slms-auth-shell {
	display: grid;
	grid-template-columns: minmax(420px, 46%) 1fr;
	min-height: 100vh;
}

/* ----- Left brand panel ----- */
.slms-auth-brand {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
}
.slms-auth-brand-pattern {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0);
	background-size: 26px 26px;
	mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.9) 20%, transparent 75%);
}
.slms-auth-brand::after {
	content: "";
	position: absolute;
	right: -140px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}
.slms-auth-brand-content {
	position: relative;
	padding: 4rem 4.5rem;
	max-width: 520px;
}
.slms-auth-brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-decoration: none;
	opacity: 0.92;
	margin-bottom: 3rem;
}
.slms-auth-brand-title {
	margin: 0 0 1rem;
	font-size: clamp(1.9rem, 2.6vw, 2.6rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.slms-auth-brand-desc {
	margin: 0 0 2.5rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}
.slms-auth-brand-points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.slms-auth-brand-points li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}
.slms-auth-point-dot {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	position: relative;
}
.slms-auth-point-dot::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 4px;
	width: 6px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ----- Right panel ----- */
.slms-auth-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 2rem;
	gap: 1.25rem;
}
.slms-auth-card {
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 2.5rem 2.5rem 2rem;
	box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18);
}
.slms-auth-card-head { margin-bottom: 1.5rem; }
.slms-auth-title {
	margin: 0 0 0.4rem;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #0f172a;
}
.slms-auth-subtitle {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #475569;
}

/* ----- Notice ----- */
.slms-auth-notice {
	border-radius: 12px;
	padding: 0.8rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}
.slms-auth-notice-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

/* ----- Form ----- */
.slms-auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.slms-auth-field label,
.slms-auth-field-row label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #0f172a;
}
.slms-auth-field-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}
.slms-auth-field-row label { margin-bottom: 0.45rem; }
.slms-auth-field-hint { font-size: 0.78rem; color: #94a3b8; }
.slms-auth-forgot {
	font-size: 0.8rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}
.slms-auth-forgot:hover { text-decoration: underline; }

.slms-auth-field input {
	width: 100%;
	padding: 0.8rem 0.95rem;
	font-size: 0.95rem;
	font-family: inherit;
	color: #0f172a;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	outline: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.slms-auth-field input::placeholder { color: #a3b1c6; }
.slms-auth-field input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.slms-auth-field-error input {
	border-color: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.slms-auth-field-mismatch {
	margin: 0.45rem 0 0;
	font-size: 0.78rem;
	color: #ef4444;
}
.slms-auth-password-wrap { position: relative; }
.slms-auth-password-wrap input { padding-right: 2.9rem; }
.slms-auth-password-toggle {
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #94a3b8;
	border-radius: 8px;
	cursor: pointer;
	transition: color 150ms ease, background 150ms ease;
}
.slms-auth-password-toggle:hover { color: #2563eb; background: #f1f5f9; }

.slms-auth-remember {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.875rem;
	color: #475569;
	cursor: pointer;
	user-select: none;
}
.slms-auth-remember input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }

.slms-auth-submit {
	margin-top: 0.4rem;
	padding: 0.9rem 1.5rem;
	font-size: 0.98rem;
	font-weight: 700;
	font-family: inherit;
	color: #ffffff;
	background: #1e40af;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
	box-shadow: 0 10px 24px -10px rgba(30, 64, 175, 0.55);
}
.slms-auth-submit:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -10px rgba(37, 99, 235, 0.55);
}
.slms-auth-submit:active { transform: translateY(0); }
.slms-auth-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.slms-auth-terms {
	margin: 0.4rem 0 0;
	font-size: 0.78rem;
	color: #94a3b8;
	text-align: center;
}

/* ----- Divider + Google ----- */
.slms-auth-divider {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.35rem 0 1.1rem;
	color: #94a3b8;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.slms-auth-divider::before,
.slms-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}
.slms-auth-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.8rem 1.5rem;
	font-size: 0.92rem;
	font-weight: 600;
	font-family: inherit;
	color: #3c4043;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.slms-auth-google-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
}

/* ----- Footer switch ----- */
.slms-auth-switch {
	margin: 1.4rem 0 0;
	font-size: 0.875rem;
	color: #475569;
	text-align: center;
}
.slms-auth-switch a {
	font-weight: 700;
	color: #2563eb;
	text-decoration: none;
}
.slms-auth-switch a:hover { text-decoration: underline; }
.slms-auth-footnote { margin: 0; font-size: 0.8rem; }
.slms-auth-footnote a { color: #94a3b8; text-decoration: none; }
.slms-auth-footnote a:hover { color: #475569; }

.slms-is-hidden { display: none !important; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
	.slms-auth-shell { grid-template-columns: 1fr; }
	.slms-auth-brand { min-height: 220px; }
	.slms-auth-brand-content {
		padding: 2.5rem 2rem;
		margin: 0 auto;
	}
	.slms-auth-brand-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
	.slms-auth-brand-desc { margin-bottom: 1.25rem; font-size: 0.92rem; }
	.slms-auth-brand-points { display: none; }
	.slms-auth-brand-logo { margin-bottom: 0.75rem; }
	.slms-auth-panel { padding: 2rem 1.25rem 3rem; }
	.slms-auth-card { padding: 1.9rem 1.5rem 1.6rem; border-radius: 16px; }
}

/* ----- Pending approval card ----- */
.slms-auth-pending-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 0 0.5rem;
}
.slms-auth-pending-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.slms-auth-pending-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}
.slms-auth-pending-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475569;
  max-width: 400px;
}
.slms-auth-pending-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.slms-auth-brand-logo-img {
  width: auto;
  height: 30px;
  max-width: 132px;
  object-fit: contain;
  display: block;
}

.slms-auth-ohlom-row { margin-top: 0.75rem; }
.slms-auth-ohlom-row .ohlom-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
