/**
 * wp-login.php: sign-in, registration and password-reset screens.
 *
 * WordPress renders this page outside the theme, so none of the storefront
 * styles apply. These rules replace the WordPress logo and blue palette with
 * the shop's dark surface and lime accent, and leave every control and every
 * piece of markup exactly as WordPress prints it.
 *
 * Loaded by Elride_Rental_Login::enqueue() on login_enqueue_scripts only.
 */

body.login {
	--elride-ink: #0c0f11;
	--elride-panel: #161a1d;
	--elride-lime: #c9f227;
	--elride-text: #e9ecee;
	--elride-muted: rgba(233, 236, 238, 0.62);
	--elride-line: rgba(255, 255, 255, 0.12);

	background-color: var(--elride-ink);
	background-image:
		linear-gradient(180deg, rgba(10, 12, 14, 0.9), rgba(10, 12, 14, 0.96)),
		url('../img/hero/hero-banner-1-sm.jpg');
	background-repeat: no-repeat, no-repeat;
	background-position: center center, center center;
	background-size: cover, cover;
	background-attachment: fixed, fixed;

	color: var(--elride-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	min-height: 100vh;
}

/* ---------------------------------------------------------------
 * 1. Logo and page width
 * ------------------------------------------------------------ */

body.login #login {
	width: 360px;
	padding: 7vh 0 40px;
}

body.login #login h1 {
	margin: 0 0 4px;
}

body.login #login h1 a {
	display: block;
	width: 240px;
	height: 60px;
	margin: 0 auto;
	background-image: url('../img/logo-white.svg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

/* ---------------------------------------------------------------
 * 2. The form panel
 * ------------------------------------------------------------ */

body.login #login form,
body.login #login .elride-login-intro,
body.login #login .message,
body.login #login .success,
body.login #login .notice,
body.login #login #login_error {
	border-radius: 18px;
}

body.login #login form {
	background: var(--elride-panel);
	border: 1px solid var(--elride-line);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	margin-top: 18px;
	padding: 28px 26px 24px;
	overflow: visible;
}

body.login #login label {
	color: var(--elride-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

body.login #login form .forgetmenot {
	float: none;
	margin: 0 0 18px;
}

body.login #login form .forgetmenot label {
	color: var(--elride-muted);
	font-weight: 400;
}

/* ---------------------------------------------------------------
 * 3. Fields
 * ------------------------------------------------------------ */

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"],
body.login input[type="url"],
body.login input[type="tel"],
body.login input[type="number"],
body.login textarea,
body.login select {
	background: #0d1113;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	min-height: 44px;
	padding: 10px 12px;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus,
body.login input[type="url"]:focus,
body.login input[type="tel"]:focus,
body.login input[type="number"]:focus,
body.login textarea:focus,
body.login select:focus {
	border-color: var(--elride-lime);
	box-shadow: 0 0 0 3px rgba(201, 242, 39, 0.18);
	outline: none;
}

body.login input[type="checkbox"] {
	accent-color: var(--elride-lime);
	border-radius: 4px;
	height: 16px;
	width: 16px;
}

body.login ::placeholder {
	color: rgba(233, 236, 238, 0.38);
}

/* ---------------------------------------------------------------
 * 4. Buttons
 * ------------------------------------------------------------ */

body.login .button-primary {
	background: var(--elride-lime);
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	color: #111416;
	float: none;
	font-size: 13px;
	font-weight: 700;
	height: 46px;
	letter-spacing: 0.04em;
	line-height: 46px;
	padding: 0 20px;
	text-shadow: none;
	text-transform: uppercase;
	width: 100%;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: #d8ff3f;
	border: 0;
	color: #111416;
}

body.login .button-primary:focus {
	box-shadow: 0 0 0 3px rgba(201, 242, 39, 0.3);
}

body.login .button:not(.button-primary),
body.login .button-secondary {
	background: #22282c;
	border: 1px solid var(--elride-line);
	border-radius: 10px;
	box-shadow: none;
	color: var(--elride-text);
	text-shadow: none;
}

body.login .button:not(.button-primary):hover,
body.login .button-secondary:hover {
	background: #2a3136;
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* The "Show password" toggle sits inside the field; it must not look like a
   standalone button. */
body.login .wp-pwd .button.wp-hide-pw {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--elride-muted);
	min-height: 0;
}

body.login .wp-pwd .button.wp-hide-pw:hover {
	background: transparent;
	color: var(--elride-lime);
}

/* ---------------------------------------------------------------
 * 5. Notices
 * ------------------------------------------------------------ */

body.login #login .elride-login-intro,
body.login #login .message,
body.login #login .success {
	background: rgba(201, 242, 39, 0.07);
	border: 1px solid rgba(201, 242, 39, 0.32);
	border-left-width: 4px;
	color: var(--elride-text);
	font-size: 13px;
	line-height: 1.55;
	margin: 20px 0 0;
	padding: 12px 14px;
}

body.login #login #login_error {
	background: rgba(255, 96, 96, 0.09);
	border: 1px solid rgba(255, 96, 96, 0.4);
	border-left-width: 4px;
	color: #ffd9d9;
	font-size: 13px;
	margin: 20px 0 0;
	padding: 12px 14px;
}

/* Links inside notices: WordPress blue would clash with the panel. */
body.login #login .message a,
body.login #login .success a,
body.login #login #login_error a {
	color: var(--elride-lime);
	text-decoration: none;
}

body.login #login .message a:hover,
body.login #login .success a:hover,
body.login #login #login_error a:hover {
	text-decoration: underline;
}

body.login #reg_passmail {
	color: var(--elride-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
 * 6. Links under the panel
 * ------------------------------------------------------------ */

body.login #login #nav,
body.login #login #backtoblog {
	font-size: 13px;
	margin: 18px 0 0;
	padding: 0;
	text-align: center;
}

body.login #login #backtoblog {
	margin-top: 8px;
}

body.login #login #nav a,
body.login #login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: var(--elride-muted);
	text-decoration: none;
}

body.login #login #nav a:hover,
body.login #login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover,
body.login #login #nav a:focus,
body.login #login #backtoblog a:focus {
	color: var(--elride-lime);
}

body.login .privacy-policy-page-link {
	margin: 14px 0 0;
	text-align: center;
}

/* ---------------------------------------------------------------
 * 7. Small screens
 * ------------------------------------------------------------ */

@media screen and (max-width: 480px) {
	body.login {
		background-attachment: scroll, scroll;
	}

	body.login #login {
		padding: 40px 20px 32px;
		width: auto;
	}

	body.login #login h1 a {
		height: 52px;
		width: 208px;
	}

	body.login #login form {
		padding: 22px 18px 18px;
	}
}
