/* wp-login and BuddyBoss auth screens inside the app shell. */

:root {
	--ap-tabbar-h: calc(70px + env(safe-area-inset-bottom, 0px));
}

body.login.afterpoddy-auth-screen {
	--ap-page: #0d100f;
	--ap-text: #edf3ee;
	--ap-muted: #9aaa9e;
	--ap-line: #ffffff14;
	background: var(--ap-page) !important;
	color: var(--ap-text);
	min-height: 100dvh;
	padding: 24px 20px calc(var(--ap-tabbar-h) + 24px) !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

body.login.afterpoddy-auth-screen #login {
	width: min(420px, 100%);
	margin: 0 auto;
	padding: 28px 24px 24px;
	border-radius: 20px;
	border: 1px solid var(--ap-line);
	background: linear-gradient(180deg, #151b17 0%, #101410 100%);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

body.login.afterpoddy-auth-screen #login h1 {
	margin: 0 0 12px;
	text-align: center;
}

body.login.afterpoddy-auth-screen #login h1 a {
	outline: none;
	box-shadow: none;
}

body.login.afterpoddy-auth-screen .login-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	text-align: center;
}

body.login.afterpoddy-auth-screen .login-heading h2 {
	display: block;
	width: 100%;
	margin: 0;
	color: var(--ap-text);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.login.afterpoddy-auth-screen .login-heading > span {
	display: block;
	width: 100%;
	margin: 0;
	color: var(--ap-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

body.login.afterpoddy-auth-screen .login-heading > span::before {
	content: "New here? ";
	color: var(--ap-muted);
	font-weight: 400;
}

body.login.afterpoddy-auth-screen .login-heading a {
	color: var(--ap-action, #1ed760);
	font-weight: 600;
	text-decoration: none;
}

body.login.afterpoddy-auth-screen .login-heading a:hover {
	text-decoration: underline;
}

body.login.afterpoddy-auth-screen form {
	margin-top: 0;
}

body.login.afterpoddy-auth-screen #loginform {
	display: flow-root;
}

body.login.afterpoddy-auth-screen #loginform::after {
	content: "";
	display: table;
	clear: both;
}

body.login.afterpoddy-auth-screen label {
	color: var(--ap-muted);
	font-size: 0.85rem;
}

body.login.afterpoddy-auth-screen .input,
body.login.afterpoddy-auth-screen input[type="text"],
body.login.afterpoddy-auth-screen input[type="password"],
body.login.afterpoddy-auth-screen input[type="email"] {
	border-radius: 12px !important;
	border: 1px solid var(--ap-line) !important;
	background: #0d100f !important;
	color: var(--ap-text) !important;
	padding: 12px 14px !important;
	font-size: 1rem !important;
	box-shadow: none !important;
}

body.login.afterpoddy-auth-screen .input:focus,
body.login.afterpoddy-auth-screen input:focus {
	border-color: var(--ap-action, #1ed760) !important;
	outline: none;
	box-shadow: 0 0 0 2px var(--ap-focus, #b7f8cf) !important;
}

/* BuddyBoss icons are absolutely positioned at left: 10px; theme expects ~40px left inset. */
body.login.afterpoddy-auth-screen.bb-login #loginform label[for="user_login"],
body.login.afterpoddy-auth-screen.bb-login #loginform label[for="user_pass"],
body.login.afterpoddy-auth-screen.bb-login #loginform .user-pass-wrap {
	position: relative;
}

body.login.afterpoddy-auth-screen.bb-login #loginform #user_login,
body.login.afterpoddy-auth-screen.bb-login #loginform input.input[type="text"],
body.login.afterpoddy-auth-screen.bb-login #loginform input[type="email"] {
	padding: 12px 14px 12px 44px !important;
}

body.login.afterpoddy-auth-screen.bb-login #loginform input[type="password"],
body.login.afterpoddy-auth-screen.bb-login #loginform #user_pass {
	padding: 12px 44px 12px 44px !important;
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot,
body.login.afterpoddy-auth-screen #loginform p.lostmenot {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	float: none !important;
	width: 50%;
	min-height: 40px;
	margin: 4px 0 12px !important;
	padding: 0;
	color: var(--ap-muted);
	font-size: 0.85rem;
	line-height: 1.3;
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot {
	float: left !important;
	justify-content: flex-start;
	gap: 6px;
}

body.login.afterpoddy-auth-screen #loginform p.lostmenot {
	float: right !important;
	justify-content: flex-end;
	text-align: right;
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	line-height: 1.3;
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot .wp-tooltip {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot .wp-tooltip__toggle {
	margin: 0;
	padding: 0;
	min-height: 0;
	line-height: 1;
	color: var(--ap-muted);
}

body.login.afterpoddy-auth-screen #loginform p.forgetmenot span.checkbox {
	flex: 0 0 auto;
	margin-top: 0;
}

body.login.afterpoddy-auth-screen #loginform p.lostmenot a {
	color: var(--ap-action, #1ed760);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

body.login.afterpoddy-auth-screen #loginform p.lostmenot a:hover {
	text-decoration: underline;
}

body.login.afterpoddy-auth-screen #loginform p.submit {
	clear: both;
	margin-top: 4px;
}

body.login.afterpoddy-auth-screen #wp-submit,
body.login.afterpoddy-auth-screen .button-primary {
	width: 100%;
	border-radius: 999px !important;
	padding: 12px 20px !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	border: none !important;
	background: var(--ap-action, #1ed760) !important;
	color: var(--ap-on-action, #0d2114) !important;
	box-shadow: none !important;
	margin-top: 0;
}

body.login.afterpoddy-auth-screen #wp-submit:hover,
body.login.afterpoddy-auth-screen .button-primary:hover,
body.login.afterpoddy-auth-screen #wp-submit:focus,
body.login.afterpoddy-auth-screen .button-primary:focus {
	background: #3be477 !important;
	color: var(--ap-on-action, #0d2114) !important;
}

body.login.afterpoddy-auth-screen #nav,
body.login.afterpoddy-auth-screen #backtoblog {
	display: none !important;
}

body.login.afterpoddy-auth-screen .message,
body.login.afterpoddy-auth-screen .notice {
	border-radius: 12px;
	border: 1px solid var(--ap-line);
	background: #1a211c;
	color: var(--ap-text);
}

body.login.afterpoddy-auth-screen.login-split-page .login-split {
	display: none !important;
}

body.login.afterpoddy-auth-screen .language-switcher {
	margin-top: 16px;
	text-align: center;
}

body.afterpoddy-auth-screen:not(.login) .entry-content .bs-cs-login-title {
	display: none !important;
}

@media (min-width: 981px) {
	body.login.afterpoddy-auth-screen .aph-bottom-nav {
		display: none !important;
	}

	body.login.afterpoddy-auth-screen {
		padding-bottom: 40px !important;
	}
}

@media (max-width: 980px) {
	body.login.afterpoddy-auth-screen .aph-bottom-nav {
		display: flex !important;
	}
}
