/* ADONE Login — cinematic split-screen, dark, glass form over an aurora.
   Colours: ADONE-blå #3B568C · pink #FF2D55 · indigo #4B53F2 · photo-black #0F1923 */

:root {
	--adone-blue: #3B568C;
	--adone-pink: #FF2D55;
	--adone-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
	--adone-sans: -apple-system, 'IBM Plex Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { background: #0a0e15; }

body.login {
	min-height: 100vh;
	margin: 0;
	background: #0a0e15;
	color: #fff;
	font-family: var(--adone-sans);
	overflow-x: hidden;
}

/* Full-viewport animated backdrop + a legibility scrim. */
#adone-fx {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: block;
}
body.login::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient( 90deg, rgba(6,9,14,.72) 0%, rgba(6,9,14,.30) 38%, rgba(6,9,14,0) 56% ),
		radial-gradient( 120% 100% at 50% 120%, rgba(0,0,0,.55), transparent 60% );
}

/* ---------------------------------------------------- left brand stage -- */

.adone-stage {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 56%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 clamp(40px, 7vw, 110px);
	box-sizing: border-box;
}
.adone-stage__logo {
	width: clamp(230px, 26vw, 360px);
	height: auto;
	display: block;
	filter: drop-shadow( 0 12px 40px rgba(0,0,0,.45) );
}
.adone-stage__rule {
	width: 46px;
	height: 3px;
	background: var(--adone-pink);
	border-radius: 2px;
	margin: 30px 0 22px;
}
.adone-stage__eyebrow {
	margin: 0;
	color: rgba(255,255,255,.66);
	font-family: var(--adone-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 5px;
	text-transform: uppercase;
}
.adone-stage__foot {
	position: absolute;
	left: clamp(40px, 7vw, 110px);
	bottom: 42px;
	color: rgba(255,255,255,.40);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ---------------------------------------------------- right form panel -- */

#login {
	position: relative;
	z-index: 2;
	width: 44%;
	margin: 0 0 0 56%;
	min-height: 100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px clamp(28px, 4.5vw, 72px) 56px !important;
}

/* Hide the default WP site-title logo — the brand lives on the stage. */
.login h1 { display: none; }

/* Heading injected via login_message. */
.adone-login-head {
	margin: 0 0 4px;
	color: #fff;
	font-family: var(--adone-serif);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: .2px;
}
.adone-login-sub {
	margin: 0 0 26px;
	color: rgba(255,255,255,.55);
	font-size: 15px;
}

/* The glass card. */
.login form {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 30px 28px 28px;
	background: rgba(19, 25, 35, .55);
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 16px;
	box-shadow: 0 30px 70px -30px rgba(0,0,0,.75);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	backdrop-filter: blur(14px) saturate(120%);
	overflow: visible;
}

.login form label {
	color: rgba(255,255,255,.80);
	font-size: 13px;
	font-weight: 600;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	padding: 13px 13px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login form .input::placeholder { color: rgba(255,255,255,.35); }
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	background: rgba(255,255,255,.08);
	border-color: var(--adone-blue);
	box-shadow: 0 0 0 3px rgba(59,86,140,.35);
	outline: none;
	color: #fff;
}

/* Show-password button sits inside the password field. */
.login .wp-pwd { position: relative; }
.login .button.wp-hide-pw {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: rgba(255,255,255,.55) !important;
}
.login .button.wp-hide-pw:hover { color: #fff !important; }

.login .forgetmenot label {
	color: rgba(255,255,255,.62);
	font-weight: 400;
}
.login input[type="checkbox"] {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.30);
	border-radius: 4px;
}
.login input[type="checkbox"]:checked {
	background: var(--adone-blue);
	border-color: var(--adone-blue);
}
.login input[type="checkbox"]:checked::before {
	color: #fff;
	margin: -3px 0 0 -4px;
}

/* Submit — ADONE pink. */
.login .button-primary,
.login #wp-submit {
	float: none !important;
	width: 100%;
	display: block;
	margin-top: 6px;
	background: linear-gradient(180deg, #FF3860 0%, #FF2D55 100%) !important;
	border: none !important;
	border-radius: 10px !important;
	box-shadow: 0 12px 26px -10px rgba(255,45,85,.55) !important;
	text-shadow: none !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	letter-spacing: .3px;
	padding: 14px 18px !important;
	height: auto !important;
	transition: transform .05s ease, box-shadow .2s ease, filter .2s ease;
}
.login .button-primary:hover,
.login #wp-submit:hover {
	filter: brightness(1.06);
	box-shadow: 0 16px 32px -10px rgba(255,45,85,.65) !important;
}
.login .button-primary:active,
.login #wp-submit:active { transform: translateY(1px); }

/* Links below the form. */
.login #nav,
.login #backtoblog {
	text-align: left;
	padding: 0;
	margin-top: 18px;
	text-shadow: none;
}
.login #nav a,
.login #backtoblog a {
	color: rgba(255,255,255,.55);
	transition: color .15s ease;
}
.login #nav a:hover,
.login #backtoblog a:hover { color: var(--adone-pink); }

/* Notices, on dark. */
.login .message,
.login .success,
.login #login_error {
	background: rgba(19,25,35,.7);
	color: rgba(255,255,255,.85);
	border: 1px solid rgba(255,255,255,.08);
	border-left: 4px solid var(--adone-blue);
	border-radius: 10px;
	box-shadow: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.login #login_error { border-left-color: var(--adone-pink); }

/* WordPress language switcher — out of the way for this branded screen. */
.login .language-switcher { display: none; }

/* Language toggle (DA / EN), top-right. */
.adone-lang {
	position: fixed;
	top: 20px;
	right: 22px;
	z-index: 3;
	display: flex;
	gap: 6px;
}
.adone-lang__opt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	font: 600 12px/1 var(--adone-sans);
	letter-spacing: 1px;
	color: rgba(255, 255, 255, .6);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .04);
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.adone-lang__opt:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, .28);
}
.adone-lang__opt.is-active {
	color: #fff;
	background: rgba(255, 45, 85, .16);
	border-color: var(--adone-pink);
}
.adone-lang__flag { font-size: 13px; line-height: 1; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
	html, body.login { overflow-x: hidden; }
	body.login { overflow-y: auto; }
	.adone-stage {
		position: relative;
		width: 100%;
		min-height: 42vh;
		padding: 46px 24px 28px;
		box-sizing: border-box;
		align-items: flex-start;
		justify-content: flex-end;
	}
	.adone-stage__foot { display: none; }
	.adone-lang { top: 14px; right: 14px; }
	#login {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		min-height: auto;
		box-sizing: border-box !important;
		padding: 10px 20px 46px !important;
	}
	.login form {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	.login form .input,
	.login input[type="text"],
	.login input[type="password"],
	.login input[type="email"] {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	body.login::before {
		background:
			linear-gradient( 180deg, rgba(6,9,14,.30) 0%, rgba(6,9,14,.55) 100% ),
			radial-gradient( 120% 80% at 50% 0%, rgba(59,86,140,.20), transparent 60% );
	}
}

@media (max-width: 480px) {
	.adone-stage__logo { width: 210px; }
	.adone-login-head { font-size: 26px; }
}
