/* TBP Replace Login */

/* ── Reset ───────────────────────────────────────────────── */
body.login {
	background: #fff;
	padding: 0;
	margin: 0;
	min-height: 100vh;
}

/* ── Outer wrapper ───────────────────────────────────────── */
.tbp-login-wrap {
	display: flex;
	min-height: 100vh;
}

/* ── Cover (left, fixed) ─────────────────────────────────── */
.tbp-login-cover {
	position: fixed;
	top: 0;
	left: 0;
	width: 58%;
	height: 100%;
	background-color: #0b1521;
	background-image: var(--tbp-cover-bg);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	z-index: 0;
}

/* Gradient overlay — explicitly requested */
.tbp-login-cover__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #0b1521 0%, rgba(11, 21, 33, 0) 65%);
}

.tbp-login-cover__logo {
	position: absolute;
	top: 36px;
	left: 40px;
	z-index: 2;
}

.tbp-login-cover__logo img {
	height: 44px;
	width: auto;
	display: block;
}

.tbp-login-cover__text {
	position: absolute;
	bottom: 52px;
	left: 48px;
	right: 48px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tbp-login-cover__welcome {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tbp-login-cover__site-name {
	display: block;
	color: #fff;
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 700;
	line-height: 1.15;
}

/* ── Right panel ─────────────────────────────────────────── */
.tbp-login-right {
	margin-left: 58%;
	flex: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 48px 80px;
	background: #fff;
	box-sizing: border-box;
	position: relative;
}

/* ── #login box ──────────────────────────────────────────── */
#login {
	width: 100%;
	max-width: 360px;
	padding: 0;
	margin: 0;
}

/* Hide WP logo heading */
#login h1,
#login .wp-login-logo {
	display: none;
}

/* ── Form header (my injected header) ────────────────────── */
.tbp-form-header {
	margin-bottom: 28px;
}

.tbp-form-title {
	font-size: 26px;
	font-weight: 700;
	color: #0b1521;
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.2;
}

.tbp-form-subtitle {
	font-size: 14px;
	color: #8c8f94;
	margin: 0;
	padding: 0;
}

/* ── Form wrapper ────────────────────────────────────────── */
#loginform,
#registerform,
#lostpasswordform,
#resetpassform {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

/* ── Field row wrappers ──────────────────────────────────── */
/* WP wraps username in <p>, password in <div.user-pass-wrap> */
#loginform > p:not(.forgetmenot):not(.submit),
#registerform > p:not(.submit),
#lostpasswordform > p:not(.submit),
#resetpassform > p:not(.submit) {
	margin: 0 0 16px;
	padding: 0;
}

/* ── Labels ──────────────────────────────────────────────── */
.login label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 6px;
	padding: 0;
}

/* ── Inputs ──────────────────────────────────────────────── */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	display: block;
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f8f9fa;
	color: #1d2327;
	box-shadow: none;
	transition: border-color .15s, background .15s;
	box-sizing: border-box;
	height: auto;
	margin: 0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #0b1521;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 21, 33, .08);
}

/* ── Password wrapper ────────────────────────────────────── */
.login .user-pass-wrap {
	margin-bottom: 16px;
}

.login .wp-pwd {
	position: relative;
}

.login .wp-pwd input[type="password"],
.login .wp-pwd input[type="text"] {
	padding-right: 44px;
}

/* Eye button: fixed height anchored to top so caps-lock div below doesn't shift it */
.login .wp-hide-pw {
	position: absolute;
	right: 4px;
	top: 0;
	height: 46px;
	width: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	color: #8c8f94;
	cursor: pointer;
}

.login .wp-hide-pw:hover {
	color: #0b1521;
}

/* Caps lock warning */
.login #caps-warning {
	font-size: 12px;
	color: #646970;
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* ── Remember me ─────────────────────────────────────────── */
/* Checkbox and label are siblings inside <p class="forgetmenot"> */
p.forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px !important;
	padding: 0;
}

p.forgetmenot input[type="checkbox"] {
	width: 15px;
	height: 15px;
	min-width: 15px;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

p.forgetmenot label {
	display: inline !important;
	font-size: 13px;
	font-weight: 400;
	color: #646970;
	margin: 0;
	cursor: pointer;
}

/* ── Submit ──────────────────────────────────────────────── */
p.submit {
	margin: 0 !important;
	padding: 0;
}

.login input[type="submit"],
.login #wp-submit {
	display: block;
	width: 100%;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	background: #0b1521;
	border: 1px solid #0b1521;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	transition: background .15s;
	height: auto;
	box-shadow: none;
	text-shadow: none;
	box-sizing: border-box;
}

.login input[type="submit"]:hover,
.login #wp-submit:hover {
	background: #1c2f48;
	border-color: #1c2f48;
}

/* ── Nav links ───────────────────────────────────────────── */
#nav,
#backtoblog {
	text-align: center;
	margin-top: 16px;
	padding: 0;
}

#nav a,
#backtoblog a {
	font-size: 13px;
	color: #8c8f94;
	text-decoration: none;
	transition: color .15s;
}

#nav a:hover,
#backtoblog a:hover {
	color: #0b1521;
}

#backtoblog { margin-top: 6px; }

/* ── Notices / errors ────────────────────────────────────── */
.login .message,
.login .success {
	border-left: 3px solid #0b1521;
	background: #f0f4f8;
	box-shadow: none;
	font-size: 13px;
	margin-bottom: 20px;
	padding: 10px 14px;
	border-radius: 0 4px 4px 0;
}

#login_error,
.login .notice-error {
	border-left: 3px solid #d63638;
	background: #fdf2f2;
	box-shadow: none;
	font-size: 13px;
	margin-bottom: 20px;
	padding: 10px 14px;
	border-radius: 0 4px 4px 0;
}

/* ── Language switcher (WP core, outside #login) ─────────── */
.language-switcher {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

.language-switcher form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.language-switcher label {
	color: #8c8f94;
	margin: 0;
	cursor: pointer;
}

.language-switcher label .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #8c8f94;
}

.language-switcher select {
	font-size: 12px;
	padding: 4px 8px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f8f9fa;
	color: #646970;
	box-shadow: none;
	height: auto;
	cursor: pointer;
}

.language-switcher .button {
	font-size: 12px !important;
	padding: 4px 10px !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
	border-radius: 4px;
	border-color: #dcdcde;
	background: #f8f9fa;
	color: #646970;
	box-shadow: none;
	cursor: pointer;
}

/* ── Password strength ───────────────────────────────────── */
.login #pass-strength-result {
	width: 100%;
	box-sizing: border-box;
	font-size: 12px;
	border-radius: 0 0 6px 6px;
	margin-top: -1px;
}

/* ── Mobile logo (shown only when cover is hidden) ───────── */
.tbp-login-mobile-logo {
	display: none;
	margin-bottom: 28px;
}

.tbp-login-mobile-logo img {
	height: 40px;
	width: auto;
	display: block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 900px ) {
	.tbp-login-cover { display: none; }
	.tbp-login-right {
		margin-left: 0;
		padding: 48px 32px 80px;
	}
	.tbp-login-mobile-logo { display: block; }
}

@media ( max-width: 480px ) {
	.tbp-login-right { padding: 48px 20px 80px; }
}
