/*
 * wp-login.php — matches tensorbotics-theme tokens (theme.json).
 * Component classes from style.css are not loaded here; tokens only.
 */

@font-face {
	font-family: Karla;
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('fonts/karla/karla-latin-wght-normal.woff2') format('woff2');
}

:root {
	--tb-base: #ffffff;
	--tb-base-alt: #eef2ff;
	--tb-contrast: #1e1a4d;
	--tb-contrast-muted: #312c85;
	--tb-primary: #4f39f6;
	--tb-primary-hover: #432dd7;
	--tb-primary-soft: #e0e7ff;
	--tb-accent: #f0b100;
	--tb-accent-hover: #a65f00;
	--tb-gray-50: #f9fafb;
	--tb-gray-200: #e5e7eb;
	--tb-gray-500: #6a7282;
	--tb-gray-950: #030712;
}

body.login {
	font-family: Karla, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tb-contrast);
	background-color: var(--tb-contrast);
	background-image:
		radial-gradient(55rem 28rem at 8% -25%, rgba(79, 57, 246, .7), transparent 62%),
		radial-gradient(38rem 22rem at 98% 0, rgba(240, 177, 0, .18), transparent 60%);
	min-height: 100vh;
}

body.login #login {
	width: 24rem;
	padding: 2rem 0 0;
}

/* Site title — accent mark + name (mirrors header.html) */

body.login #login h1 a {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	background: none;
	width: auto;
	height: auto;
	margin: 0 auto 1.75rem;
	padding: 0;
	text-indent: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tb-base);
	text-decoration: none;
	transition: color .15s ease;
}

body.login #login h1 a::before {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--tb-accent);
}

body.login #login h1 a:hover,
body.login #login h1 a:focus {
	color: var(--tb-primary-soft);
}

/* Form card */

body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
	margin-top: 0;
	padding: 1.75rem 1.5rem 1.5rem;
	border: 1px solid var(--tb-gray-200);
	border-radius: 12px;
	background: var(--tb-base);
	box-shadow: 0 22px 45px -28px rgba(30, 26, 77, .55);
}

body.login form .input,
body.login input[type='text'],
body.login input[type='password'],
body.login input[type='email'] {
	border: 1px solid var(--tb-gray-200);
	border-radius: 6px;
	padding: .55rem .75rem;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--tb-contrast);
	background: var(--tb-base);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .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: var(--tb-primary);
	box-shadow: 0 0 0 1px var(--tb-primary);
	outline: 2px solid transparent;
}

body.login label {
	font-size: .875rem;
	font-weight: 600;
	color: var(--tb-contrast-muted);
}

/* Primary button — accent CTA from theme.json */

body.login .wp-core-ui .button-primary {
	background: var(--tb-accent);
	border-color: var(--tb-accent);
	color: var(--tb-gray-950);
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	padding: .55rem 1.25rem;
	min-height: 0;
	box-shadow: none;
	text-shadow: none;
	transition: background .15s ease, border-color .15s ease;
}

body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
	background: var(--tb-accent-hover);
	border-color: var(--tb-accent-hover);
	color: var(--tb-base);
}

body.login .wp-core-ui .button-primary:focus {
	box-shadow: 0 0 0 2px var(--tb-primary-soft);
}

body.login .wp-core-ui .button-primary:active {
	background: var(--tb-accent-hover);
	border-color: var(--tb-accent-hover);
}

body.login .wp-core-ui .button.button-large {
	height: auto;
}

/* Secondary / default buttons */

body.login .wp-core-ui .button,
body.login .wp-core-ui .button-secondary {
	border-radius: 6px;
	font-family: inherit;
	font-weight: 600;
	color: var(--tb-contrast-muted);
	border-color: var(--tb-gray-200);
	box-shadow: none;
}

body.login .wp-core-ui .button:hover,
body.login .wp-core-ui .button-secondary:hover {
	border-color: var(--tb-primary);
	color: var(--tb-primary);
}

/* Links below the form */

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: var(--tb-primary-soft);
	font-weight: 600;
	text-decoration: none;
	transition: color .15s ease;
}

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

body.login #backtoblog {
	margin: 1rem 0 0;
}

/* Notices */

body.login .message,
body.login .success,
body.login #login_error {
	border-left: 4px solid var(--tb-primary);
	border-radius: 6px;
	background: var(--tb-base);
	box-shadow: none;
	font-size: .875rem;
}

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

body.login .message,
body.login .success {
	border-left-color: var(--tb-accent);
}

/* Optional intro line above the form */

body.login .tb-login-intro {
	margin: 0 0 1.25rem;
	text-align: center;
	font-size: .875rem;
	color: var(--tb-primary-soft);
}

body.login .tb-login-intro a {
	color: var(--tb-accent);
	font-weight: 600;
	text-decoration: none;
}

body.login .tb-login-intro a:hover,
body.login .tb-login-intro a:focus {
	color: var(--tb-base);
}

/* Language switcher (when enabled) */

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

body.login .language-switcher label {
	color: var(--tb-primary-soft);
}

@media (prefers-reduced-motion: reduce) {
	body.login #login h1 a,
	body.login .wp-core-ui .button-primary,
	body.login form .input,
	body.login #nav a,
	body.login #backtoblog a {
		transition: none;
	}
}
