/**
 * Ê-Sistemas White-Label Login Theme (wp-login.php)
 * Paleta Oficial: Laranja (#F37021), Preto (#0A0A0B), Cinza Escuro (#141518), Cinza Claro (#E5E7EC) e Branco (#FFFFFF)
 * Estética: Frosted Dark Glassmorphism + Fluid Buttons
 */

:root {
	--es-orange: #F37021;
	--es-orange-bright: #FF8C1A;
	--es-orange-deep: #D95B0E;
	--es-black: #0A0A0B;
	--es-charcoal: #141518;
	--es-gray-dark: #22242A;
	--es-gray-light: #E5E7EC;
	--es-white: #FFFFFF;
}

body.esistemas-login-screen {
	min-height: 100vh;
	margin: 0;
	padding: 28px 16px;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--es-white);
	background-color: var(--es-black);
	background-image:
		radial-gradient(circle at 20% 18%, rgba(243, 112, 33, 0.24), transparent 44%),
		radial-gradient(circle at 82% 82%, rgba(255, 140, 26, 0.14), transparent 46%),
		linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
		linear-gradient(145deg, #08080A 0%, #111216 55%, #1A1C22 100%);
	background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px, 100% 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	-webkit-font-smoothing: antialiased;
}

body.esistemas-login-screen #login {
	width: 100%;
	max-width: 430px;
	padding: 0;
	margin: 0 auto;
}

/* Logo Oficial Ê-Sistemas (<E> SISTEMAS) versão fundo escuro */
body.esistemas-login-screen #login h1 {
	margin-bottom: 26px;
	text-align: center;
}

body.esistemas-login-screen #login h1 a {
	width: 270px;
	height: 54px;
	margin: 0 auto;
	background-image: url("../images/brand/logo-esistemas-dark.svg");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	outline: none;
	box-shadow: none;
	filter: drop-shadow(0 6px 18px rgba(243, 112, 33, 0.18));
	transition: transform 0.22s ease, filter 0.22s ease;
}

body.esistemas-login-screen #login h1 a:hover {
	transform: translateY(-2px);
	filter: drop-shadow(0 10px 24px rgba(243, 112, 33, 0.34));
}

/* Card de Login Glassmorphism */
body.esistemas-login-screen #loginform,
body.esistemas-login-screen #lostpasswordform,
body.esistemas-login-screen #registerform {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	padding: 34px 32px 30px;
	margin-top: 0;
	box-shadow:
		0 28px 64px rgba(0, 0, 0, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.esistemas-login-screen .login label,
body.esistemas-login-screen #loginform label,
body.esistemas-login-screen #lostpasswordform label {
	color: #E5E7EC;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-bottom: 6px;
}

body.esistemas-login-screen input[type="text"],
body.esistemas-login-screen input[type="password"],
body.esistemas-login-screen input[type="email"] {
	background: rgba(10, 10, 11, 0.56);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 13px;
	color: #FFFFFF;
	font-size: 15px;
	padding: 11px 14px;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.42);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.esistemas-login-screen input[type="text"]:focus,
body.esistemas-login-screen input[type="password"]:focus,
body.esistemas-login-screen input[type="email"]:focus {
	background: rgba(10, 10, 11, 0.78);
	border-color: var(--es-orange);
	box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.28);
	outline: none;
}

body.esistemas-login-screen .wp-pwd .button.wp-hide-pw {
	color: #C4C8D1;
	background: transparent;
	border: 0;
	top: 4px;
	right: 4px;
}

body.esistemas-login-screen .wp-pwd .button.wp-hide-pw:hover {
	color: var(--es-orange-bright);
}

body.esistemas-login-screen .forgetmenot {
	margin-top: 6px;
}

body.esistemas-login-screen .forgetmenot label {
	font-weight: 500;
	color: #C4C8D1;
}

body.esistemas-login-screen input[type="checkbox"] {
	background: rgba(10, 10, 11, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 6px;
}

/* Botão Principal Glassmorphism Laranja Ê-Sistemas */
body.wp-core-ui.esistemas-login-screen .button-primary,
body.esistemas-login-screen #wp-submit {
	width: 100%;
	margin-top: 20px;
	min-height: 48px;
	padding: 11px 22px;
	border: 1px solid rgba(255, 178, 102, 0.55);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(255, 140, 26, 0.96) 0%, rgba(243, 112, 33, 0.94) 60%, rgba(217, 91, 14, 0.96) 100%);
	backdrop-filter: blur(12px);
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
	box-shadow:
		0 12px 28px rgba(243, 112, 33, 0.36),
		inset 0 1px 0 rgba(255, 255, 255, 0.38);
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

body.wp-core-ui.esistemas-login-screen .button-primary:hover,
body.wp-core-ui.esistemas-login-screen .button-primary:focus,
body.esistemas-login-screen #wp-submit:hover,
body.esistemas-login-screen #wp-submit:focus {
	background: linear-gradient(135deg, #FFA038 0%, #F37021 100%);
	border-color: rgba(255, 200, 140, 0.75);
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow:
		0 16px 36px rgba(243, 112, 33, 0.48),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.wp-core-ui.esistemas-login-screen .button-primary:active,
body.esistemas-login-screen #wp-submit:active {
	transform: translateY(0) scale(0.99);
}

body.esistemas-login-screen .submit {
	float: none;
	margin: 0;
}

/* Mensagens e alertas */
body.esistemas-login-screen .message,
body.esistemas-login-screen .notice,
body.esistemas-login-screen #login_error {
	background: rgba(20, 21, 24, 0.78);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #F4F5F7;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 4px solid var(--es-orange);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

body.esistemas-login-screen #login_error {
	border-left-color: #EF4444;
}

body.esistemas-login-screen .message a,
body.esistemas-login-screen #login_error a {
	color: var(--es-orange-bright);
}

/* Links inferiores */
body.esistemas-login-screen #nav,
body.esistemas-login-screen #backtoblog,
body.esistemas-login-screen .privacy-policy-page-link {
	text-align: center;
	padding: 0;
	margin: 14px 0 0;
}

body.esistemas-login-screen #nav a,
body.esistemas-login-screen #backtoblog a,
body.esistemas-login-screen .privacy-policy-page-link a {
	color: #A1A6B2;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.18s ease;
}

body.esistemas-login-screen #nav a:hover,
body.esistemas-login-screen #backtoblog a:hover,
body.esistemas-login-screen .privacy-policy-page-link a:hover {
	color: var(--es-orange-bright);
}

body.esistemas-login-screen .language-switcher {
	margin-top: 18px;
}

body.esistemas-login-screen .language-switcher select {
	background: rgba(20, 21, 24, 0.72);
	color: #E5E7EC;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
}

body.esistemas-login-screen .language-switcher .button {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	color: #FFFFFF;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
}

/* Assinatura institucional inferior */
.es-login-brand-footer {
	margin-top: 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 430px;
}

.es-login-tagline {
	color: #D4D7DF;
	font-size: 12.5px;
	font-weight: 500;
}

.es-login-meta {
	color: #7D828F;
	font-size: 11.5px;
	letter-spacing: 0.03em;
}
