/**
 * STG Login Page — Split-screen branded login
 *
 * Design:
 *   - Left: Video background + Simphony branding
 *   - Right: Dark glassmorphism login form
 *   - Typography: Manrope 700 (headings), Helvetica (body)
 *   - border-radius: 0 (Simphony system)
 */

/* ------------------------------------------------
   Reset WP login defaults
   ------------------------------------------------ */

body.stg-login {
	background: #050507 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	height: 100vh;
}

body.stg-login #login {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ------------------------------------------------
   Split-screen wrapper
   ------------------------------------------------ */

.stg-lp {
	display: flex;
	width: 100vw;
	height: 100vh;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #050507;
}

/* ------------------------------------------------
   Left panel — Video + branding
   ------------------------------------------------ */

.stg-lp__left {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	overflow: hidden;
	min-width: 0;
	background: linear-gradient(135deg, #0a0a0c 0%, #151518 50%, #0a0a0c 100%);
}

.stg-lp__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.stg-lp__video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(5, 5, 7, 0.3) 0%,
		rgba(5, 5, 7, 0.15) 40%,
		rgba(5, 5, 7, 0.6) 100%
	);
	z-index: 1;
}

.stg-lp__brand {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px;
	width: 100%;
	height: 100%;
}

.stg-lp__brand-top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.stg-lp__logo {
	height: 24px;
	width: auto;
	flex-shrink: 0;
	object-fit: contain;
}

.stg-lp__logo--large {
	height: 80px;
}

.stg-lp__brand-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.stg-lp__brand-desc {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
	max-width: 380px;
}

.stg-lp__brand-bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stg-lp__brand-label {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.25);
	margin: 0;
}

.stg-lp__brand-footer {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.15);
	margin: 0;
}

/* ------------------------------------------------
   Right panel — Form
   ------------------------------------------------ */

.stg-lp__right {
	width: 480px;
	min-width: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0a0a0c;
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	padding: 48px;
	overflow-y: auto;
}

.stg-lp__form-wrap {
	width: 100%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.stg-lp__form-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stg-lp__form-subtitle {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.35);
	margin: 0;
}

/* ------------------------------------------------
   WP form overrides (inside right panel)
   ------------------------------------------------ */

body.stg-login #loginform,
body.stg-login .login form {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.stg-login #loginform label,
body.stg-login .login form label {
	font-family: 'Helvetica', 'Arial', sans-serif !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	letter-spacing: 0.02em !important;
	color: rgba(255, 255, 255, 0.5) !important;
}

body.stg-login #loginform input[type="text"],
body.stg-login #loginform input[type="password"],
body.stg-login #loginform input[type="email"],
body.stg-login .login form input[type="text"],
body.stg-login .login form input[type="password"],
body.stg-login .login form input[type="email"] {
	width: 100% !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0 !important;
	color: #FFFFFF !important;
	font-family: 'Helvetica', 'Arial', sans-serif !important;
	font-size: 14px !important;
	padding: 14px 16px !important;
	margin-top: 6px !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.3s ease, background 0.3s ease;
}

body.stg-login #loginform input[type="text"]:focus,
body.stg-login #loginform input[type="password"]:focus,
body.stg-login #loginform input[type="email"]:focus,
body.stg-login .login form input[type="text"]:focus,
body.stg-login .login form input[type="password"]:focus,
body.stg-login .login form input[type="email"]:focus {
	border-color: rgba(255, 255, 255, 0.25) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

/* Submit button */
body.stg-login #wp-submit,
body.stg-login .login form .button-primary {
	width: 100% !important;
	background: #FFFFFF !important;
	color: #050507 !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: 'Manrope', sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	letter-spacing: 0.02em !important;
	padding: 16px 24px !important;
	cursor: pointer !important;
	transition: background 0.3s ease, transform 0.2s ease;
	text-shadow: none !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1 !important;
	margin-top: 8px !important;
	text-transform: uppercase;
}

body.stg-login #wp-submit:hover,
body.stg-login .login form .button-primary:hover {
	background: rgba(255, 255, 255, 0.88) !important;
	transform: translateY(-1px);
}

body.stg-login #wp-submit:active,
body.stg-login .login form .button-primary:active {
	transform: translateY(0);
}

/* Remember me */
body.stg-login .forgetmenot {
	margin-bottom: 8px !important;
}

body.stg-login .forgetmenot label {
	font-size: 12px !important;
	color: rgba(255, 255, 255, 0.3) !important;
}

body.stg-login .forgetmenot input[type="checkbox"] {
	accent-color: #FFFFFF;
}

/* Navigation links (Lost password, etc.) */
body.stg-login #login #nav,
body.stg-login #login .login-nav {
	text-align: center !important;
	padding: 0 !important;
}

body.stg-login #login #nav a,
body.stg-login #login .login-nav a,
body.stg-login #nav a,
body.stg-login p#nav a {
	font-family: 'Helvetica', 'Arial', sans-serif !important;
	font-size: 12px !important;
	color: rgba(255, 255, 255, 0.3) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

body.stg-login #login #nav a:hover,
body.stg-login #nav a:hover,
body.stg-login p#nav a:hover {
	color: rgba(255, 255, 255, 0.6) !important;
}

/* Error / message notices */
body.stg-login .login .message,
body.stg-login .login .success,
body.stg-login .login #login_error {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-left: 3px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 0 !important;
	color: rgba(255, 255, 255, 0.6) !important;
	box-shadow: none !important;
	font-family: 'Helvetica', 'Arial', sans-serif !important;
	font-size: 13px !important;
	padding: 12px 16px !important;
	margin-bottom: 16px !important;
}

body.stg-login .login #login_error {
	border-left-color: rgba(255, 100, 100, 0.5) !important;
}

body.stg-login .login #login_error a {
	color: rgba(255, 255, 255, 0.5) !important;
}

/* Hide elements we don't need */
body.stg-login .privacy-policy-page-link,
body.stg-login #login h1,
body.stg-login .login h1 {
	display: none !important;
}

/* ------------------------------------------------
   Entrance animation
   ------------------------------------------------ */

.stg-lp__left {
	opacity: 0;
	animation: stg-lp-fade 0.8s ease-out 0.1s forwards;
}

.stg-lp__right {
	opacity: 0;
	transform: translateX(20px);
	animation: stg-lp-slide 0.6s ease-out 0.3s forwards;
}

@keyframes stg-lp-fade {
	to { opacity: 1; }
}

@keyframes stg-lp-slide {
	to { opacity: 1; transform: translateX(0); }
}

.stg-lp__form-header {
	opacity: 0;
	transform: translateY(12px);
	animation: stg-lp-up 0.5s ease-out 0.5s forwards;
}

@keyframes stg-lp-up {
	to { opacity: 1; transform: translateY(0); }
}

body.stg-login #loginform {
	opacity: 0;
	transform: translateY(12px);
	animation: stg-lp-up 0.5s ease-out 0.65s forwards;
}

/* ------------------------------------------------
   Responsive — Tablet
   ------------------------------------------------ */

@media (max-width: 960px) {
	.stg-lp__right {
		width: 420px;
		min-width: 420px;
		padding: 40px;
	}
}

/* ------------------------------------------------
   Responsive — Mobile
   ------------------------------------------------ */

@media (max-width: 767px) {
	body.stg-login {
		overflow-y: auto;
		height: auto;
	}

	.stg-lp {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
		position: relative;
	}

	/* Left panel: compact, just logo + branding */
	.stg-lp__left {
		height: auto;
		min-height: auto;
	}

	.stg-lp__brand {
		padding: 32px 24px;
		height: auto;
		justify-content: flex-start;
		gap: 16px;
	}

	.stg-lp__brand-top {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.stg-lp__logo {
		height: 36px;
	}

	.stg-lp__logo--large {
		display: none;
	}

	.stg-lp__brand-desc {
		font-size: 13px;
	}

	.stg-lp__brand-bottom {
		display: none;
	}

	/* Right panel: full space, centered form */
	.stg-lp__right {
		width: 100%;
		min-width: 100%;
		flex: 1;
		padding: 48px 24px 64px;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
		align-items: center;
		justify-content: center;
	}

	.stg-lp__form-wrap {
		max-width: 340px;
	}
}

/* ------------------------------------------------
   Reduced Motion
   ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.stg-lp__left,
	.stg-lp__right,
	.stg-lp__form-header,
	body.stg-login #loginform {
		opacity: 1;
		transform: none;
		animation: none;
	}
}
