/**
 * Wells Cathedral Staff Portal — Login Page Styles
 * Built against confirmed WP 7.1 HTML structure.
 * ========================================================================== */

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */
body.login {
	background-color: var(--color-bg-page);
	font-family: var(--font-body);
	padding-top: 3em;
}

/* --------------------------------------------------------------------------
   #login container — WP default is 320px, we expand slightly
   -------------------------------------------------------------------------- */
#login {
	width: 360px;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Logo — force Wells Cathedral logo, override WP's own background-image
   -------------------------------------------------------------------------- */
.login h1 {
	margin-bottom: 1rem;
}

.login h1 a,
#login h1 a {
	background-image: url('../images/wells-cathedral-logo-black.svg') !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	width: 240px !important;
	height: 90px !important;
	display: block;
	margin: 0 auto;
	text-indent: -9999px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Notice message
   -------------------------------------------------------------------------- */
p.wi-login-message {
	background: #ffffff;
	border: 0.5px solid var(--color-border);
	border-radius: 10px;
	color: #666666;
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 1rem;
	padding: 14px 18px;
	text-align: center;
}

p.wi-login-message a {
	color: var(--color-primary);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Form card
   -------------------------------------------------------------------------- */
.login #loginform {
	background: #ffffff;
	border: 0.5px solid var(--color-border);
	border-radius: 10px;
	box-shadow: none;
	margin-top: 0;
	padding: 1.75rem 1.75rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */
.login label {
	color: #444444;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Text + password inputs
   -------------------------------------------------------------------------- */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	background-color: #ffffff !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	color: #1a1a1a !important;
	font-size: 14px;
	height: auto;
	padding: 11px 14px !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent) !important;
	outline: none;
}

.login input::placeholder {
	color: #bbbbbb;
}

/* --------------------------------------------------------------------------
   Password show/hide toggle
   -------------------------------------------------------------------------- */
.login .user-pass-wrap {
	margin-bottom: 0;
}

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

.login .wp-pwd input[type="password"] {
	padding-right: 46px !important;
}

.login .wp-hide-pw {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #aaaaaa;
	position: absolute;
	right: 10px !important;
	top: 50% !important;
	transform: translateY(-50%);
	padding: 0 !important;
	min-height: auto !important;
	height: auto !important;
}

.login .wp-hide-pw:hover {
	color: var(--color-primary);
	background: transparent !important;
}

.login .wp-hide-pw:focus {
	box-shadow: none !important;
	outline: none;
}

/* --------------------------------------------------------------------------
   Remember Me row
   Hide the ? tooltip, show checkbox + label cleanly
   -------------------------------------------------------------------------- */
.login p.forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
	float: none;
	margin: 0 0 1rem;
}

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

.login p.forgetmenot label {
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #666666;
	cursor: pointer;
	margin: 0;
}

.login p.forgetmenot .wp-tooltip,
.login p.forgetmenot .wp-is-toggletip {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Submit button
   -------------------------------------------------------------------------- */
.login .submit {
	margin-top: 0;
	padding: 0;
}

.login #wp-submit,
.login input[type="submit"] {
	background: var(--color-primary) !important;
	border: none !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	height: 46px;
	letter-spacing: 0.02em;
	padding: 0 !important;
	text-shadow: none !important;
	transition: background-color 0.15s ease;
	width: 100%;
}

.login #wp-submit:hover,
.login input[type="submit"]:hover {
	background: var(--color-primary-dark) !important;
}

.login #wp-submit:focus,
.login input[type="submit"]:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 50%, transparent) !important;
	outline: none;
}

/* --------------------------------------------------------------------------
   SSO block — output via login_footer, moved into #loginform by JS.
   Inherits form card width and padding — no explicit width needed.
   -------------------------------------------------------------------------- */
.wi-sso-wrap {
	margin-top: 0.25rem;
}

.wi-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 1.1rem 0;
}

.wi-divider::before,
.wi-divider::after {
	content: '';
	flex: 1;
	border-top: 0.5px solid var(--color-border);
}

.wi-divider span {
	font-size: 11px;
	color: #bbbbbb;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wi-btn-ms {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 44px;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	color: #444444;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wi-btn-ms:hover {
	background: var(--color-tint);
	border-color: var(--color-border-strong);
	color: #1a1a1a;
}

.wi-sso-note {
	font-size: 12px;
	color: #aaaaaa;
	text-align: center;
	margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   Lost password link — sits below form card in #nav
   Merges visually with form card bottom edge
   -------------------------------------------------------------------------- */
.login #loginform {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: none;
	margin-bottom: 0;
}

.login #nav {
	background: #ffffff;
	border: 0.5px solid var(--color-border);
	border-top: none;
	border-radius: 0 0 10px 10px;
	margin: -1px 0 0;
	padding: 0.875rem 1.75rem;
	text-align: center;
}

.login #nav a {
	color: var(--color-primary);
	font-size: 13px;
	text-decoration: none;
}

.login #nav a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Back to blog — hide empty element
   -------------------------------------------------------------------------- */
#backtoblog {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Error messages
   -------------------------------------------------------------------------- */
.login #login_error,
.login .message,
.login .success {
	background: var(--color-tint);
	border: 0.5px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	border-radius: 6px;
	box-shadow: none;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 1rem;
	padding: 10px 14px;
}

.login #login_error {
	border-left-color: #c0392b;
}
