/**
 * Structural baseline for the Appiform login screen.
 *
 * Colors, gradients, borders, radius, shadows and section visibility are
 * layered on top of this file at runtime from Settings > Appiform Login
 * (see includes/login-styles.php). This file only controls layout/behavior
 * and provides sane fallback values in case the dynamic styles fail to load.
 */

.login * {
	box-sizing: border-box;
}

body.login {
	background-image: linear-gradient(30deg, #6abcc2, #bffcff);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	min-height: 100vh;
}

#login {
	background: #fff;
	margin: 60px auto;
	padding: 30px;
	width: 100%;
	max-width: 400px;
	border-radius: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	transition: box-shadow 0.2s ease-in-out;
}

#login h1 {
	margin: 0 0 10px;
}

#login h1 a,
.login h1 a {
	background-image: url(../images/Appiform-logo-black-stacked.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	height: 130px;
	width: 100%;
	padding-bottom: 0;
	margin: 0 auto;
}

.login form#loginform {
	box-shadow: none;
	padding: 20px 0 0;
	border: 0;
}

.login label {
	color: #555;
	font-size: 14px;
	font-weight: 600;
}

.login form .input {
	font-size: 16px;
	padding: 10px 14px;
	height: auto;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login form .input:focus {
	outline: 2px solid #51bdc5;
	outline-offset: 1px;
}

.login form .forgetmenot {
	float: none;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
}

.login form .forgetmenot label {
	margin: 0;
	font-weight: normal;
}

#login form p.submit {
	margin-top: 20px;
}

.login.wp-core-ui .button-primary {
	text-shadow: none;
	float: none;
	clear: both;
	display: block;
	width: 100%;
	padding: 10px;
	height: auto;
	font-size: 15px;
	font-weight: bold;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.login.wp-core-ui .button-primary:hover,
.login.wp-core-ui .button-primary:focus {
	transform: translateY(-1px);
}

.login.wp-core-ui .button-primary:active {
	transform: translateY(0);
}

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

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

.login #nav a,
.login #backtoblog a {
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

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

.login .message,
.login #login_error {
	border-radius: 6px;
	border-left-width: 4px;
}

.login .privacy-policy-page-link {
	text-align: center;
}

/* Reproduced site header / footer (only rendered when enabled in settings). */
.apf-login-site-header,
.apf-login-site-footer {
	padding: 14px 20px;
	flex: 0 0 auto;
}

.apf-login-site-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
}

.apf-login-site-footer .apf-login-site-inner {
	justify-content: center;
	text-align: center;
	font-size: 13px;
}

.apf-login-site-branding img,
.apf-login-site-branding .custom-logo {
	max-height: 48px;
	width: auto;
	height: auto;
	display: block;
}

.apf-login-site-title {
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.apf-login-site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.apf-login-site-nav li {
	margin: 0;
}

.apf-login-site-nav a {
	text-decoration: none;
	font-size: 14px;
}

.apf-login-site-nav a:hover,
.apf-login-site-nav a:focus {
	text-decoration: underline;
}

.apf-login-site-footer-text {
	font-size: 13px;
}

@media only screen and (max-width: 480px) {
	#login {
		margin: 30px auto;
		padding: 25px 20px;
		border-radius: 20px;
	}

	#login h1 a,
	.login h1 a {
		height: 100px;
	}

	.apf-login-site-inner {
		justify-content: center;
		text-align: center;
	}
}
