/**
 * Custom login page styles.
 *
 * Enqueued via Login_Customization::custom_login_css().
 */

/* Background and base font styling */
body.login {
	background: #f3f4f6;
	background-image: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

/* Remove top padding since flexbox is centering everything */
body.login div#login {
	padding: 0;
	margin: 0;
}

/* Logo customization */
body.login h1 a {
	background-size: contain !important;
	width: 180px !important;
	height: 120px !important;
	margin-bottom: 20px;
	/* Remove outline/box if a custom plugin applied one */
	border: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
}

/* Form container */
body.login form {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	padding: 30px;
	margin-top: 0;
}

/* Labels */
body.login form label {
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
}

/* Input fields */
body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	font-size: 16px;
	padding: 8px 12px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus,
body.login form input[type="email"]:focus {
	border-color: #0ea5e9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
	outline: none;
}

/* Submit Button */
body.login form input[type="submit"] {
	background-color: #0284c7;
	border: none;
	border-radius: 6px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	text-transform: none;
	text-shadow: none;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: background-color 0.2s ease;
	cursor: pointer;
	width: 100%;
	margin-top: 15px;
}

body.login form input[type="submit"]:hover,
body.login form input[type="submit"]:focus {
	background-color: #0369a1;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
	color: #ffffff;
}

/* Remember Me checkbox layout */
body.login form .forgetmenot {
	margin-top: 10px;
}

body.login form .forgetmenot input[type="checkbox"] {
	border-radius: 4px;
	border: 1px solid #d1d5db;
	margin-right: 8px;
}

body.login form .forgetmenot input[type="checkbox"]:checked {
	border-color: #0ea5e9;
}

/* Align button properly to stretch full width and handle container */
body.login form .submit {
	float: none;
	clear: both;
}

/* Message containers (Errors, Success, etc.) */
body.login #login_error,
body.login .message {
	border-left-color: #0284c7;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

body.login #login_error {
	border-left-color: #ef4444;
	/* red for errors */
}

/* Underneath Links (Lost Password, Back to Blog) */
body.login #nav,
body.login #backtoblog {
	text-align: center;
	margin: 15px 0 0 0;
	padding: 0;
}

body.login #nav a,
body.login #backtoblog a {
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
	color: #111827;
}

/* Password visibility toggle button icon color */
body.login form .wp-pwd .button.wp-hide-pw .dashicons {
	color: #6b7280;
}