/* Animate Studio — Ultimate Member login / register restyle
   Scopes everything under UM's own top-level `.um` wrapper so this can't
   leak onto anything else on the site. Reuses the same dark palette as
   the rest of the Animate Studio front-end (see frontend-manager.css) so
   the login/register pages feel like part of the same product instead of
   UM's stock light theme.

   No template overrides needed — UM renders enough class hooks on its
   default markup that this is 100% CSS. If you ever DO need to change
   the actual fields/copy (not just styling), that's a template override
   or the UM Form Builder, not this file. */

.um {
	--asm-bg: #0a0f1e;
	--asm-panel: #12172a;
	--asm-panel-2: #1a2036;
	--asm-border: #262c48;
	--asm-text: #f1f5f9;
	--asm-muted: #8b93ab;
	--asm-accent: #7c5cfc;
	--asm-accent-2: #3b82f6;
	--asm-accent-soft: rgba(124, 92, 252, 0.18);
	--asm-danger: #ff6b6b;
	--asm-radius: 14px;

	max-width: 420px;
	margin: 56px auto;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Card shell ─────────────────────────────────────────────────────── */
.um .um-form {
	background: linear-gradient(180deg, var(--asm-panel) 0%, var(--asm-bg) 100%);
	border: 1px solid var(--asm-border);
	border-radius: var(--asm-radius);
	padding: 40px 36px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 252, 0.06);
	position: relative;
	overflow: hidden;
}

/* Subtle brand glow, purely decorative */
.um .um-form::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(124, 92, 252, 0.28) 0%, rgba(124, 92, 252, 0) 70%);
	pointer-events: none;
}

/* Branded heading above the form fields — added via um_before_form hook,
   see class-frontend-manager.php add_auth_heading(). Falls back to
   nothing gracefully if that hook isn't present. */
.um .asm-um-heading {
	text-align: center;
	margin-bottom: 28px;
	position: relative;
}
.um .asm-um-heading .asm-um-logo {
	font-size: 34px;
	margin-bottom: 10px;
	filter: drop-shadow(0 4px 14px rgba(124, 92, 252, 0.35));
}
.um .asm-um-heading h2 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--asm-text);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}
.um .asm-um-heading p {
	font-size: 0.85rem;
	color: var(--asm-muted);
	margin: 0;
}

/* ── Fields ─────────────────────────────────────────────────────────── */
.um .um-field {
	margin-bottom: 18px;
}
.um .um-field-label label,
.um .um-field-label {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--asm-muted);
	margin-bottom: 6px;
	display: block;
}
.um .um-field-area {
	position: relative;
}
.um .um-field-area input[type="text"],
.um .um-field-area input[type="email"],
.um .um-field-area input[type="password"],
.um .um-field-area input[type="tel"],
.um input[type="text"],
.um input[type="email"],
.um input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	background: var(--asm-panel-2);
	border: 1px solid var(--asm-border);
	border-radius: 9px;
	color: var(--asm-text);
	font-size: 14.5px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.um .um-field-area input::placeholder {
	color: #5b6480;
}
.um .um-field-area input:focus,
.um input[type="text"]:focus,
.um input[type="email"]:focus,
.um input[type="password"]:focus {
	outline: none;
	border-color: var(--asm-accent);
	box-shadow: 0 0 0 3px var(--asm-accent-soft);
}

/* Password-with-icon fields render an extra wrapper — keep the eye/lock
   icon readable against the dark input. */
.um .um-field-area-password i,
.um .um-field-icon i {
	color: var(--asm-muted);
}

/* Remember-me / terms checkboxes */
.um .um-field-checkbox-state {
	border-color: var(--asm-border) !important;
	background: var(--asm-panel-2) !important;
}
.um .um-field-checkbox.active .um-field-checkbox-state {
	background: var(--asm-accent) !important;
	border-color: var(--asm-accent) !important;
}
.um .um-field-checkbox-option {
	color: var(--asm-muted) !important;
	font-size: 0.85rem !important;
}

/* ── Errors / notices ───────────────────────────────────────────────── */
.um .um-notice.err,
.um .um-field-error {
	background: rgba(255, 107, 107, 0.12) !important;
	border: 1px solid rgba(255, 107, 107, 0.35) !important;
	color: #ffb4b4 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 0.85rem !important;
	margin-bottom: 16px !important;
}
.um .um-notice.err i {
	color: #ffb4b4 !important;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.um .um-button,
.um input[type="submit"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 18px;
	background: linear-gradient(135deg, var(--asm-accent) 0%, var(--asm-accent-2) 100%);
	border: none;
	border-radius: 9px;
	color: #fff;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.um .um-button:hover,
.um input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
}
.um .um-button:active,
.um input[type="submit"]:active {
	transform: translateY(0);
}

/* Secondary action button (e.g. "Register" next to "Log In") — outline
   style so it doesn't compete with the primary gradient button. */
.um .um-button.um-alt {
	background: transparent;
	border: 1px solid var(--asm-border);
	color: var(--asm-text);
}
.um .um-button.um-alt:hover {
	border-color: var(--asm-accent);
	box-shadow: none;
	background: var(--asm-accent-soft);
}

/* Login page's two-button row ("Log In" | "Register") */
.um .um-col-alt .um-left.um-half,
.um .um-col-alt .um-right.um-half {
	width: 48%;
}
.um .um-col-alt .um-left.um-half { float: left; }
.um .um-col-alt .um-right.um-half { float: right; }
.um .um-clear { clear: both; }

/* "Forgot your password?" link row underneath */
.um .um-col-alt-b {
	text-align: center;
	margin-top: 18px;
}
.um .um-link-alt {
	color: var(--asm-muted);
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.15s ease;
}
.um .um-link-alt:hover {
	color: var(--asm-accent-2);
	text-decoration: underline;
}

/* Social-login row (if enabled) */
.um .um-social-login,
.um .um-sn-share {
	margin-top: 20px !important;
}

/* ── Register page's multi-column field layout ─────────────────────── */
.um .um-register .um-field.um-half {
	width: 48%;
	display: inline-block;
	vertical-align: top;
}
.um .um-register .um-field.um-half:nth-child(odd) {
	margin-right: 4%;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.um {
		margin: 24px 16px;
		max-width: none;
	}
	.um .um-form {
		padding: 28px 22px 24px;
	}
	.um .um-col-alt .um-left.um-half,
	.um .um-col-alt .um-right.um-half {
		width: 100%;
		float: none;
		margin-bottom: 10px;
	}
	.um .um-register .um-field.um-half {
		width: 100%;
		display: block;
	}
	.um .um-register .um-field.um-half:nth-child(odd) {
		margin-right: 0;
	}
}
