/*
 * Smart SaaS Tools — Login screen redesign
 * Restyles wp-login.php (login, register, lost password) to match
 * the app's design system, without touching WordPress's own
 * authentication logic.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.login {
	background: linear-gradient(160deg, #F8FAFC 0%, #F1EBFC 100%);
	font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

body.login #login {
	width: 100%;
	max-width: 380px;
	padding: 0 20px;
}

/* Replace the default WordPress logo with the site's brand name */
body.login h1 a {
	background-image: none !important;
	width: auto;
	height: auto;
	text-indent: 0;
	overflow: visible;
	font-size: 26px;
	font-weight: 700;
	color: var(--sst-primary, #5D1CEA);
	text-decoration: none;
	display: block;
	text-align: center;
	margin-bottom: 8px;
}

body.login #login form {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
	padding: 32px 28px 20px;
}

body.login .message,
body.login #login_error {
	border-radius: 10px;
	border: none;
	box-shadow: none;
	background: #FEF2F2;
	color: #DC2626;
	font-size: 13px;
	padding: 12px 14px;
}

body.login .message {
	background: rgba(22, 163, 74, 0.08);
	color: #16A34A;
}

body.login label {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	box-shadow: none;
	width: 100%;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border-color: var(--sst-primary, #5D1CEA);
	box-shadow: 0 0 0 3px rgba(93, 28, 234, 0.12);
}

body.login .button-primary {
	background: var(--sst-primary, #5D1CEA) !important;
	border-color: var(--sst-primary, #5D1CEA) !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	padding: 10px 22px;
	text-shadow: none;
	box-shadow: none;
	width: 100%;
	text-align: center;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	opacity: 0.9;
	background: var(--sst-primary, #5D1CEA) !important;
}

body.login form .forgetmenot {
	font-size: 13px;
	color: #6B7280;
}

body.login #nav,
body.login #backtoblog {
	text-align: center;
	margin-top: 16px;
}

body.login #nav a,
body.login #backtoblog a {
	color: #5D1CEA;
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
}

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

body.login p.login-info {
	background: #F8FAFC;
	border-radius: 8px;
	font-size: 12px;
}

/* Registration screen: a small reassurance line under the form, in
   the same spirit as the SaaS "no credit card required" messaging. */
body.login.login-action-register #login form::after {
	content: 'Free account. No credit card required.';
	display: block;
	text-align: center;
	font-size: 12px;
	color: #6B7280;
	margin-top: 16px;
}

@media (max-width: 480px) {
	body.login #login form {
		padding: 24px 20px 16px;
	}
}
