/**
 * wp-login.php — single column, white page + amber accents (DM Sans).
 * No split columns or page gradients.
 */

body.login {
	font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
	background: #fff;
	color: #18181b;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.75rem 1.125rem;
	box-sizing: border-box;
}

body.login #login {
	width: 100%;
	max-width: 27.5rem;
	padding: 0;
	margin: 0 auto;
}

/* Logo / title block */
body.login h1 {
	margin: 0 0 1.75rem;
	text-align: center;
}

body.login h1 a {
	display: block;
	margin: 0 auto;
	height: 3.5rem;
	width: 100%;
	max-width: 16rem;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	text-indent: -9999px;
	overflow: hidden;
	outline: none;
	box-shadow: none;
}

body.login h1 a:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f59e0b;
	border-radius: 0.5rem;
}

/* Text fallback when no custom logo image (inline styles override dimensions) */
body.login.rv-login--text-logo h1 a {
	text-indent: 0;
	height: auto;
	width: auto;
	max-width: none;
	background: none !important;
	color: #171717;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	overflow: visible;
}

body.login.rv-login--text-logo h1 a:focus {
	box-shadow: none;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Forms */
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.08);
	padding: 1.75rem 1.5rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	font-family: inherit;
	font-size: 0.9375rem;
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid #d4d4d8;
	border-radius: 0.5rem;
	background: #fff;
	color: #171717;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border-color: #f59e0b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

body.login label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #404040;
}

body.login .forgetmenot label {
	font-weight: 400;
}

/* Space above primary button: 50px !important — see wp_add_inline_style() in inc/rv-login.php */

/* Space between login card and sign-up (block is moved after #loginform in rv-login.php) */
body.login #login:has(.rv-login-signup-block) #loginform {
	margin-bottom: 0;
}

/* Sign up block — moved under #login after #loginform (see rv-login.php) */
body.login .rv-login-signup-block {
	font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e4e4e7;
}

body.login .rv-login-signup-block__lead {
	margin: 0 0 1rem;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	color: #71717a;
}

@media (min-width: 640px) {
	body.login .rv-login-signup-block__lead {
		font-size: 0.875rem;
		margin-bottom: 1.125rem;
	}
}

body.login .rv-login-signup-block__hint {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.6875rem;
	line-height: 1.5;
	color: #a1a1aa;
}

@media (min-width: 640px) {
	body.login .rv-login-signup-block__hint {
		margin-top: 0.875rem;
		font-size: 0.75rem;
	}
}

/* Secondary CTA: clear hierarchy vs solid amber “Log In” */
body.login .rv-login-signup-btn {
	display: inline-flex;
	width: 100%;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	color: #3f3f46;
	background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
	border: 1px solid #d4d4d8;
	border-radius: 0.5rem;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

body.login .rv-login-signup-btn:hover {
	color: #18181b;
	background: #f4f4f5;
	border-color: #a1a1aa;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

body.login .rv-login-signup-btn:active {
	background: #e4e4e7;
}

body.login .rv-login-signup-btn:focus {
	outline: none;
}

body.login .rv-login-signup-btn:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #a1a1aa;
}

body.login .rv-login-signup-btn__text {
	flex: 0 1 auto;
}

body.login .rv-login-signup-btn__icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: #71717a;
	transition: transform 0.15s ease, color 0.15s ease;
}

body.login .rv-login-signup-btn:hover .rv-login-signup-btn__icon {
	color: #52525b;
	transform: translateX(2px);
}

@media (min-width: 640px) {
	body.login .rv-login-signup-btn {
		min-height: 3rem;
		padding: 0.75rem 1.25rem;
		font-size: 0.9375rem;
	}
}

/* Primary button — core + block themes */
body.login .button-primary,
body.login .button.button-primary,
body.login input[type="submit"]#wp-submit,
body.login #wp-submit {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	width: 100%;
	padding: 0.625rem 1rem;
	border: none;
	border-radius: 0.5rem;
	background: #f59e0b !important;
	color: #fff !important;
	text-shadow: none;
	box-shadow: none;
	min-height: 2.75rem;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

body.login .button-primary:hover,
body.login .button.button-primary:hover,
body.login input[type="submit"]#wp-submit:hover,
body.login #wp-submit:hover,
body.login #wp-submit:focus {
	background: #d97706 !important;
	color: #fff !important;
}

body.login .button-primary:focus,
body.login #wp-submit:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f59e0b;
}

/* Messages */
body.login .message,
body.login #login_error {
	margin-bottom: 0.75rem;
	border: 1px solid #e4e4e7;
	border-left-width: 4px;
	border-left-color: #f59e0b;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	font-size: 0.875rem;
}

body.login #login_error {
	border-left-color: #dc2626;
	background: #fff;
}

/* Links under form */
body.login #nav,
body.login #backtoblog {
	text-align: center;
	padding: 0;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}

body.login.login-action-login #nav {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1rem;
}

body.login #nav a.wp-login-lost-password {
	color: #525252;
	text-decoration: none;
	font-weight: 500;
}

body.login #nav a,
body.login #backtoblog a {
	color: #525252;
	text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login #nav a:focus,
body.login #backtoblog a:focus {
	color: #b45309;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.login #nav a.wp-login-lost-password:hover,
body.login #nav a.wp-login-lost-password:focus {
	color: #b45309;
}

/* Privacy policy / language picker row */
body.login .privacy-policy-page-link {
	font-size: 0.8125rem;
	text-align: center;
	margin-top: 1rem;
}

body.login .language-switcher {
	margin-top: 1rem;
	text-align: center;
}

body.login .language-switcher select {
	font-family: inherit;
	font-size: 0.8125rem;
	border-radius: 0.5rem;
	border: 1px solid #d4d4d4;
	padding: 0.35rem 0.5rem;
}

/* Powered by WordPress line */
body.login p#backtoblog {
	margin-top: 1.25rem;
}
