/* Font loaded via enqueue in functions.php */

body.login {
	background: linear-gradient(135deg, #040B37 0%, #0a1854 50%, #040B37 100%);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 20px;
	position: relative;
	overflow: hidden;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

#login {
	width: 100% !important;
	max-width: 360px !important;
	padding: 0 !important;
	margin: 0 auto !important;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

/* Ocultar seletor de idioma */
.language-switcher,
.wp-hide-pw,
#language-switcher,
.login .language-switcher {
	display: none !important;
}

/* Ocultar botão de mostrar/ocultar senha e indicador de Caps Lock */
.login .wp-pwd button.button,
.login .wp-pwd .button.wp-hide-pw,
.login button.wp-hide-pw,
.login .password-input-wrapper button,
.login #pass-strength-result,
.login .pw-weak,
.login .caps-lock-warning,
.login .password-toggle {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Ocultar links de navegação (voltar ao blog e perdeu senha) */
#backtoblog,
#nav,
.privacy-policy-page-link,
.login .privacy-policy-page-link {
	display: none !important;
}

/* Ocultar título ou texto Acessar se houver */
.login h1+.message,
.login-action-login #login>p:first-child {
	display: none !important;
}

/* Ocultar screen-reader-text no login */
.login .screen-reader-text {
	display: none !important;
}

/* Ocultar seta scroll-to-top */
#deixav5-scroll-to-top,
.scroll-to-top {
	display: none !important;
}

#login h1 a,
.login h1 a {
	height: 60px;
	width: 100%;
	max-width: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	padding-bottom: 0;
	text-indent: -9999px;
	overflow: hidden;
	display: block;
	margin: 0 auto 2px;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
	transition: transform 0.3s ease;
}

#login h1 a:hover {
	transform: scale(1.05);
}

.login form {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-radius: 16px;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	border: none;
	padding: 25px 24px;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.login label {
	font-weight: 600;
	color: #1e293b;
	font-size: 13px;
	margin-bottom: 6px;
	display: block;
}

.login input[type="text"],
.login input[type="password"] {
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	box-shadow: none;
	font-size: 15px;
	padding: 12px 16px;
	margin-top: 0;
	margin-bottom: 12px;
	width: 100% !important;
	box-sizing: border-box !important;
	height: auto !important;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
	background: #ffffff;
	outline: none;
	transform: translateY(-2px);
}

.login .submit {
	float: none !important;
	text-align: center !important;
	width: 100% !important;
	margin-top: 15px !important;
	display: flex !important;
	justify-content: center !important;
}

.wp-core-ui .button-primary {
	background: #ffffff !important;
	color: #667eea !important;
	border: 2px solid #667eea !important;
	box-shadow:
		0 10px 25px rgba(102, 126, 234, 0.3),
		0 0 0 0 rgba(102, 126, 234, 0.4) !important;
	text-shadow: none;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 700;
	padding: 0 30px;
	height: 44px;
	line-height: 40px;
	width: 100% !important;
	display: block !important;
	margin: 0 auto !important;
	font-size: 15px;
	position: relative;
	overflow: hidden;
}

.wp-core-ui .button-primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(102, 126, 234, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.wp-core-ui .button-primary:hover::before {
	width: 300px;
	height: 300px;
}

.wp-core-ui .button-primary:hover {
	background: #667eea !important;
	color: #ffffff !important;
	border-color: #667eea !important;
	transform: translateY(-3px);
	box-shadow:
		0 15px 35px rgba(102, 126, 234, 0.4),
		0 0 0 0 rgba(102, 126, 234, 0.6) !important;
}

.wp-core-ui .button-primary:active {
	transform: translateY(-1px);
}

.login #nav,
.login #backtoblog {
	text-align: center !important;
	padding: 0 !important;
	margin-top: 20px !important;
}

.login #nav a,
.login #backtoblog a {
	color: #ffffff !important;
	text-decoration: none !important;
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 14px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

.login .message,
.login .success {
	border-left: 4px solid rgba(255, 255, 255, 0.3);
	background-color: transparent !important;
	box-shadow: none;
	border-radius: 12px;
	padding: 15px 20px;
	color: #ffffff !important;
}

.login .message *,
.login .success * {
	color: #ffffff !important;
}