/*
 * Фирменный экран wp-login.php: карточка на сером фоне, поля и акцентная
 * кнопка как в форме комментариев. Только CSS-переменные из inline-токенов:
 * цвета задаёт опция platform_brand, внешних хостов и шрифтов нет (D-03).
 */
body.login {
	background: var(--bg);
	background-image: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--auth-ink);
}

/* One card, one 1px frame: the shadow and any nested form frame are gone. */
body.login #login {
	width: min(92vw, 400px);
	margin: 6vh auto 0;
	box-sizing: border-box;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--auth-radius);
	box-shadow: none;
}

/* Core logo heading stays available to screen readers only. */
#login h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
	clip: rect(0 0 0 0);
}

#login h1 a {
	background-image: none;
	text-indent: 0;
}

/* Forms are content, not a second card. */
#loginform,
#registerform,
#lostpasswordform,
#resetpassform {
	margin: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	box-shadow: none;
}

#loginform label,
#registerform label,
#lostpasswordform label,
#resetpassform label {
	margin: 0 0 6px;
	color: var(--auth-ink);
	font-size: 14px;
	font-weight: 500;
}

/* Fields match the comment form: white, 1px line, 8px radius, 16px text. */
#loginform input[type="text"],
#loginform input[type="password"],
#registerform input[type="text"],
#registerform input[type="email"],
#lostpasswordform input[type="text"],
#resetpassform input[type="text"],
#resetpassform input[type="password"] {
	width: 100%;
	min-height: 44px;
	margin: 0 0 16px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: none;
	color: var(--auth-ink);
	font-size: 16px;
	line-height: 1.3;
}

/* One accent ring on focus: no core blue, no border+outline double ring.
 * Border 1px accent + outline 0 keeps the effective ring at 1px. */
#loginform input:focus,
#registerform input:focus,
#lostpasswordform input:focus,
#resetpassform input:focus {
	border-color: var(--accent);
	box-shadow: none;
	outline: 0 none;
}

/* Password eye: ink/muted by default, accent on hover/focus — never core blue. */
#login .wp-hide-pw {
	color: #6b7280;
	border-color: transparent;
	box-shadow: none;
}

#login .wp-hide-pw .dashicons {
	color: #6b7280;
}

#login .wp-hide-pw:hover,
#login .wp-hide-pw:focus {
	color: var(--accent);
	border-color: transparent;
	box-shadow: none;
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

#login .wp-hide-pw:hover .dashicons,
#login .wp-hide-pw:focus .dashicons {
	color: var(--accent);
}

/* «Запомнить меня»: 16px box in the brand colour, no core «?» widget. */
#loginform .forgetmenot {
	float: none;
	margin: 0 0 16px;
	font-size: 14px;
}

/* Core floats the checkbox left and the button right; the card is one column. */
#loginform p.submit,
#registerform p.submit,
#lostpasswordform p.submit,
#resetpassform p.submit {
	float: none;
	margin: 0;
	padding: 0;
}

#rememberme {
	width: 16px;
	height: 16px;
	min-height: 0;
	margin: 0 6px 0 0;
	accent-color: var(--accent);
}

#login .wp-tooltip,
#login .wp-tooltip__toggle,
#login .wp-tooltip__bubble {
	display: none !important;
}

#wp-submit {
	display: block;
	float: none;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: none;
	cursor: pointer;
}

#wp-submit:hover,
#wp-submit:focus {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: none;
	color: #fff;
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

/* Wordmark: «Сектор» in ink, the last word in accent, weight 700. */
.platform-auth-brand {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.5px;
	line-height: 1.2;
	text-align: center;
}

.platform-auth-brand a {
	text-decoration: none;
}

.auth-brand-name {
	color: var(--auth-ink);
}

.auth-brand-mark {
	color: var(--accent);
}

.platform-auth-title {
	margin: 12px 0 4px;
	color: var(--auth-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.platform-auth-lead {
	margin: 0 0 20px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

/* Notices: a left brand bar, no full red ring. */
#login .notice,
#login .message,
#login .error,
#login #login_error {
	margin: 0 0 16px;
	padding: 10px 12px;
	background: #f8f9fb;
	border: 0;
	border-left: 3px solid var(--line);
	border-radius: 8px;
	box-shadow: none;
	color: var(--auth-ink);
	font-size: 14px;
	line-height: 1.5;
}

#login .notice-error,
#login #login_error {
	background: #fff5f6;
	border-left-color: var(--accent);
}

#login .notice p,
#login .message p,
#login .error p,
#login #login_error p {
	margin: 0;
}

#login #login_error strong {
	font-weight: 700;
}

/* One centred line under the button: register · lost password. */
#login #nav {
	margin: 16px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

#login #nav a {
	color: var(--accent);
	text-decoration: none;
}

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

#login #backtoblog {
	margin: 12px 0 0;
	padding: 0;
	font-size: 13px;
	text-align: center;
}

#login #backtoblog a {
	color: #6b7280;
	text-decoration: none;
}

#login #backtoblog a:hover,
#login #backtoblog a:focus {
	color: var(--accent);
}

/* The core register/lost-password banner and static instruction are removed in
 * PHP; this only keeps any remaining info notice quiet. */
#login .notice-info {
	background: #f8f9fb;
	border-left-color: var(--line);
	color: #6b7280;
}

.platform-auth-footer {
	margin: 24px auto 0;
	padding: 0 12px;
	color: var(--auth-ink);
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}

.platform-auth-footer a {
	color: var(--accent);
}

@media (max-width: 480px) {
	body.login #login {
		width: calc(100vw - 32px);
		margin: 20px auto 0;
		padding: 16px;
	}
}
