/* ==========================================================================
   CSS VARIABLES FOR LOGIN
   ========================================================================== */
:root {
	--zgr-primary-color: #0f172a; /* Slate dark default button style matching Ref 1 */
}

/* ==========================================================================
   1. BODY & BACKGROUND
   ========================================================================== */
body.zgr-theme-admin-login-enabled {
	background-color: #f3f6f9 !important;
	color: #334155 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 100vh !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Container wrapper width adjust */
body.zgr-theme-admin-login-enabled #login {
	width: 380px !important;
	padding: 40px 0 !important;
	margin: 0 auto !important;
}

/* ==========================================================================
   2. HEADER & LOGO OVERRIDES (Ref 1 inspired)
   ========================================================================== */
body.zgr-theme-admin-login-enabled h1 {
	margin-bottom: 25px !important;
}

body.zgr-theme-admin-login-enabled h1 a {
	background-image: none !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: auto !important;
	width: 100% !important;
	height: auto !important;
	text-indent: 0 !important;
	display: block !important;
	text-decoration: none !important;
	outline: none !important;
	overflow: visible !important;
	margin: 0 auto !important;
	padding-bottom: 0 !important;
}

/* Custom Header Wrapper */
.zgr-login-header-wrapper {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* Fallback / Mock Icon */
.zgr-login-logo-placeholder {
	background: var(--zgr-primary-color);
	color: #ffffff;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.zgr-login-logo-placeholder .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	line-height: 26px;
}

.zgr-login-logo-img {
	max-width: 180px;
	max-height: 70px;
	object-fit: contain;
	margin-bottom: 4px;
}

.zgr-login-title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.zgr-login-subtitle {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 5px;
}

/* ==========================================================================
   3. LOGIN CARD & FORM CONTROLS
   ========================================================================== */
body.zgr-theme-admin-login-enabled #loginform,
body.zgr-theme-admin-login-enabled #lostpasswordform,
body.zgr-theme-admin-login-enabled #registerform {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 35px !important;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
	position: relative;
}

/* ACCESO ADMINISTRATIVO header inside card */
body.zgr-theme-admin-login-enabled #loginform::before {
	content: "ACCESO ADMINISTRATIVO";
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	margin-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 12px;
}

/* Label styling */
body.zgr-theme-admin-login-enabled #loginform label,
body.zgr-theme-admin-login-enabled #lostpasswordform label,
body.zgr-theme-admin-login-enabled #registerform label {
	color: #475569 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	margin-bottom: 6px !important;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Hide br inside label */
body.zgr-theme-admin-login-enabled #loginform label br {
	display: none;
}

/* Input Fields styling with Icons (Ref 1 inspired) */
body.zgr-theme-admin-login-enabled input[type="text"],
body.zgr-theme-admin-login-enabled input[type="password"],
body.zgr-theme-admin-login-enabled input[type="email"] {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	padding: 10px 12px 10px 38px !important;
	font-size: 14px !important;
	color: #1e293b !important;
	box-shadow: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin-top: 5px !important;
	margin-bottom: 15px !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	background-repeat: no-repeat !important;
	background-position: 12px center !important;
	background-size: 16px !important;
}

/* Input icons */
body.zgr-theme-admin-login-enabled input[type="text"],
body.zgr-theme-admin-login-enabled input[type="email"] {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2394a3b8"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/></svg>') !important;
}
body.zgr-theme-admin-login-enabled input[type="password"] {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2394a3b8"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>') !important;
}

/* Input Fields focus */
body.zgr-theme-admin-login-enabled input[type="text"]:focus,
body.zgr-theme-admin-login-enabled input[type="password"]:focus,
body.zgr-theme-admin-login-enabled input[type="email"]:focus {
	border-color: var(--zgr-primary-color) !important;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1) !important;
	outline: none !important;
}

/* Native password eye toggle */
body.zgr-theme-admin-login-enabled .wp-hide-pw {
	color: #94a3b8 !important;
	margin-top: 6px !important;
}
body.zgr-theme-admin-login-enabled .wp-hide-pw:hover {
	color: var(--zgr-primary-color) !important;
}

/* Checkbox styling */
body.zgr-theme-admin-login-enabled input[type="checkbox"] {
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	width: 16px !important;
	height: 16px !important;
	margin-top: 0 !important;
}
body.zgr-theme-admin-login-enabled input[type="checkbox"]:checked {
	background-color: var(--zgr-primary-color) !important;
	border-color: var(--zgr-primary-color) !important;
}
body.zgr-theme-admin-login-enabled input[type="checkbox"]:focus {
	border-color: var(--zgr-primary-color) !important;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1) !important;
}
body.zgr-theme-admin-login-enabled .forgetmenot {
	margin-top: 5px !important;
}

/* ==========================================================================
   4. PRIMARY SUBMIT BUTTON (Ref 1 inspired)
   ========================================================================== */
body.zgr-theme-admin-login-enabled .submit {
	margin-top: 20px !important;
	float: none !important;
	clear: both !important;
}

body.zgr-theme-admin-login-enabled .button-primary {
	background: var(--zgr-primary-color) !important;
	border: none !important;
	border-radius: 6px !important;
	color: #ffffff !important;
	width: 100% !important;
	height: 44px !important;
	line-height: 44px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	float: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background-color 0.2s ease-in-out !important;
}

body.zgr-theme-admin-login-enabled .button-primary:hover,
body.zgr-theme-admin-login-enabled .button-primary:focus {
	filter: brightness(1.15) !important;
	background: var(--zgr-primary-color) !important;
}

/* Add custom arrow icon details */
body.zgr-theme-admin-login-enabled .button-primary::after {
	content: "\2192" !important;
	font-weight: 700 !important;
	margin-left: 2px !important;
}

/* ==========================================================================
   5. NAVIGATION & FOOTER LINKS
   ========================================================================== */
body.zgr-theme-admin-login-enabled #nav,
body.zgr-theme-admin-login-enabled #backtoblog {
	text-align: center !important;
	padding: 0 !important;
	margin: 15px 0 0 0 !important;
	font-size: 13px !important;
}

body.zgr-theme-admin-login-enabled #nav a,
body.zgr-theme-admin-login-enabled #backtoblog a {
	color: #64748b !important;
	transition: color 0.2s !important;
}

body.zgr-theme-admin-login-enabled #nav a:hover,
body.zgr-theme-admin-login-enabled #backtoblog a:hover {
	color: var(--zgr-primary-color) !important;
}

body.zgr-theme-admin-login-enabled #backtoblog {
	margin-top: 10px !important;
}

/* ==========================================================================
   6. ERRORS & NOTICES
   ========================================================================== */
body.zgr-theme-admin-login-enabled .login .message,
body.zgr-theme-admin-login-enabled #login_error {
	border-radius: 8px !important;
	border-left-width: 4px !important;
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.02) !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	margin-bottom: 20px !important;
}

body.zgr-theme-admin-login-enabled .login .message {
	background-color: #f0fdf4 !important;
	border-left-color: #22c55e !important;
	color: #166534 !important;
}

body.zgr-theme-admin-login-enabled #login_error {
	background-color: #fef2f2 !important;
	border-left-color: #ef4444 !important;
	color: #991b1b !important;
}

/* ==========================================================================
   7. LANGUAGE SWITCHER HIDDEN
   ========================================================================== */
#language-switcher,
.language-switcher {
	display: none !important;
}
