/*
 * DES Theme — wp-login redesign
 *
 * Centered card on a navy DES gradient. Brand-font logo replaces the default
 * WordPress mark. Inputs / submit / nav links re-styled to match the front-end.
 */

:root {
	--color-primary:      #0C1523;
	--color-accent:       #2563EB;
	--color-accent-dark:  #1D4ED8;
	--color-white:        #FFFFFF;
	--color-bg-light:     #F8FAFC;
	--color-text:         #0C1523;
	--color-text-muted:   #64748B;
	--color-border:       #E2E8F0;
	--color-border-light: #F1F5F9;
	--color-terracotta:   #E05026;
	--color-gold:         #D97706;
}

html, body.login {
	background: var(--color-primary);
}

body.login {
	font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--color-text);
	min-height: 100vh;
	margin: 0;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	background:
		radial-gradient(ellipse at 8% 60%, rgba(96, 165, 250, 0.18) 0%, transparent 55%),
		radial-gradient(ellipse at 92% 20%, rgba(217, 119, 6, 0.12) 0%, transparent 50%),
		linear-gradient(135deg, #0C1523 0%, #0B1A2E 50%, #060D18 100%);
}

/* Kuba Maze pattern overlay — same tile as the front-end hero */
body.login::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M2,2 L22,2 L22,10 L10,10 L10,22 L2,22 Z' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.1'/%3E%3Cpath d='M46,2 L26,2 L26,10 L38,10 L38,22 L46,22 Z' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.1'/%3E%3Cpath d='M2,46 L22,46 L22,38 L10,38 L10,26 L2,26 Z' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.1'/%3E%3Cpath d='M46,46 L26,46 L26,38 L38,38 L38,26 L46,26 Z' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='1.1'/%3E%3Crect x='22' y='22' width='4' height='4' fill='rgba(201,139,21,0.55)'/%3E%3Cline x1='22' y1='10' x2='26' y2='10' stroke='rgba(255,255,255,0.12)' stroke-width='0.8'/%3E%3Cline x1='22' y1='38' x2='26' y2='38' stroke='rgba(255,255,255,0.12)' stroke-width='0.8'/%3E%3Cline x1='10' y1='22' x2='10' y2='26' stroke='rgba(255,255,255,0.12)' stroke-width='0.8'/%3E%3Cline x1='38' y1='22' x2='38' y2='26' stroke='rgba(255,255,255,0.12)' stroke-width='0.8'/%3E%3C/svg%3E");
	background-size: 48px 48px;
}

/* Make the login content sit above the pattern overlay */
body.login > * { position: relative; z-index: 1; }

/* ── Container ── */
#login {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 0;
}

/* ── DES logo block — replaces the WordPress mark ── */
#login h1 {
	margin: 0 0 1.75rem;
	text-align: center;
	padding: 0;
}

#login h1 a {
	background-image: url('../images/des-logo-login.png') !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: contain !important;
	background-color: transparent !important;
	width: 260px !important;
	height: 130px !important;
	text-indent: -9999px !important;
	overflow: hidden !important;
	display: block !important;
	margin: 0 auto !important;
	padding: 0 !important;
	line-height: 1 !important;
	color: transparent !important;
	font-size: 0 !important;
	text-decoration: none !important;
}

/* Kill any leftover pseudo-elements from the previous fake-logo design. */
#login h1 a::before,
#login h1 a::after {
	content: none !important;
	display: none !important;
}

/* ── Welcome line (injected via login_message filter) ── */
.login .des-login-welcome {
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.92rem;
	margin: 0 0 1.5rem;
	font-weight: 400;
	background: none;
	border: 0;
	padding: 0;
	box-shadow: none;
}

/* ── Form card ── */
.login form {
	background: #fff;
	border-radius: 12px;
	padding: 2rem 2rem 1.75rem;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.06),
		0 24px 60px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.05);
	margin: 0 0 1rem;
	overflow: visible;
}

/* ── Labels & inputs ── */
.login label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.35rem;
	display: block;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"],
.login .input {
	background: #fff;
	border: 1.5px solid var(--color-border);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	color: var(--color-text);
	width: 100%;
	margin: 0 0 0.85rem;
	line-height: 1.4;
	height: auto;
	min-height: 0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus,
.login .input:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	outline: none;
}

/* Show / hide password button */
.login .wp-pwd {
	position: relative;
}

.login .wp-pwd .button.wp-hide-pw {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--color-text-muted) !important;
	top: 6px;
}

.login .wp-pwd .button.wp-hide-pw:hover {
	color: var(--color-primary) !important;
}

/* ── Remember me row ── */
.login .forgetmenot {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	float: none;
}

.login .forgetmenot label {
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.login input[type="checkbox"] {
	accent-color: var(--color-accent);
	width: 16px;
	height: 16px;
}

/* ── Submit button ── */
.login .submit { margin: 0; clear: both; }

.login #wp-submit {
	background: var(--color-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
	transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
	width: 100%;
	height: auto;
	min-height: 0;
	text-shadow: none;
	float: none;
	cursor: pointer;
}

.login #wp-submit:hover,
.login #wp-submit:focus {
	background: var(--color-accent-dark);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
	transform: translateY(-1px);
}

.login #wp-submit:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

/* ── Nav links below the card ── */
.login #nav,
.login #backtoblog {
	text-align: center;
	margin: 0;
	padding: 0.4rem 0;
	font-size: 0.85rem;
	font-weight: 500;
}

.login #nav a,
.login #backtoblog a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.18s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus {
	color: #fff;
	text-decoration: underline;
}

/* ── Privacy policy & language switcher ── */
.login .privacy-policy-page-link {
	text-align: center;
	margin-top: 1.25rem;
}

.login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.78rem;
}

.login .privacy-policy-page-link a:hover {
	color: rgba(255, 255, 255, 0.85);
}

.login .language-switcher {
	text-align: center;
	margin-top: 1.5rem;
}

.login .language-switcher select {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 6px;
	padding: 0.35rem 0.5rem;
}

.login .language-switcher .button {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	box-shadow: none;
}

/* ── Notices (errors, info messages) ── */
.login #login_error,
.login .message,
.login .notice {
	background: #fff !important;
	border-radius: 8px !important;
	border: 0 !important;
	border-left: 4px solid var(--color-terracotta) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
	font-size: 0.88rem !important;
	margin: 0 0 1rem !important;
	padding: 0.75rem 1rem !important;
	color: var(--color-text) !important;
}

.login .message,
.login .notice-success {
	border-left-color: var(--color-accent) !important;
}

/* ── Text on dark background (everything outside the white card) ── */
.login p { color: var(--color-text); }
.login form p { color: var(--color-text); }

/* ── Mobile ── */
@media (max-width: 480px) {
	body.login { padding: 1rem 0.75rem; }
	.login form { padding: 1.5rem 1.25rem; }
	#login h1 a { width: 220px !important; height: 110px !important; }
}
