/* ================================
   SOCIAL AREA — WELCOME SCREEN UPGRADE
   ================================ */

/* Darken & blur the background photo slightly more for readability */
#login_wrap.back_login {
	position: relative;
}
#login_wrap.back_login::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
	z-index: 0;
}
#login_wrap.back_login > * {
	position: relative;
	z-index: 1;
}

/* Glass card around the login box */
#login_all {
	background: rgba(20, 20, 25, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	max-width: 400px;
	margin: 0 auto;
	overflow: hidden;
	animation: saFadeUp 0.6s ease-out;
}

@keyframes saFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Logo pop-in */
#login_logo {
	max-width: 190px;
	filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
	animation: saPop 0.5s ease-out;
}
@keyframes saPop {
	0%   { opacity: 0; transform: scale(0.85); }
	100% { opacity: 1; transform: scale(1); }
}

/* Welcome text */
.login_text .bold.text_xlarge {
	font-size: 26px;
	letter-spacing: 0.3px;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.login_text .text_med {
	color: rgba(255,255,255,0.75);
	font-size: 14.5px;
	max-width: 320px;
	margin: 0 auto;
}

/* Login button — brighter gradient + smooth hover lift */
.intro_login_btn.ok_btn {
	background: linear-gradient(135deg, #21c064, #189a4f);
	border: none;
	border-radius: 30px;
	padding: 14px 0;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	box-shadow: 0 8px 20px rgba(33, 192, 100, 0.35);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.intro_login_btn.ok_btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(33, 192, 100, 0.45);
	filter: brightness(1.06);
}
.intro_login_btn.ok_btn:active {
	transform: translateY(0);
}

/* Guest login button — smaller, subtle outline style */
.intro_guest_btn.default_btn {
	position: relative;
	width: 65%;
	margin: 26px auto 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-radius: 30px;
	padding: 9px 0;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.intro_guest_btn.default_btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-2px);
}

/* "or" divider — sits outside/above the button's rounded shape */
.intro_guest_btn.default_btn::before {
	content: "or";
	position: absolute;
	top: -20px;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

/* "New here?" label + animated arrow pointing to the Register button */
.centered_element .tpad20 {
	padding-top: 10px;
	margin: 0;
}
.login_text ~ div .text_xsmall,
.centered_element .tpad20 > .text_xsmall {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	margin-bottom: 6px;
}
.centered_element .tpad20 > .text_xsmall::after {
	content: "↓";
	display: block;
	color: #21c064;
	font-size: 16px;
	margin-top: 4px;
	animation: saArrowBounce 1.4s ease-in-out infinite;
}
@keyframes saArrowBounce {
	0%, 100% { transform: translateY(0); opacity: 0.7; }
	50%      { transform: translateY(4px); opacity: 1; }
}

/* Register now — styled as a full button, matching Login & Guest */
p[onclick*="getRegistration"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid #21c064;
	border-radius: 30px;
	padding: 13px 0;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #21c064;
	text-align: center;
	letter-spacing: 0.3px;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	cursor: pointer;
}
p[onclick*="getRegistration"]:hover {
	background: linear-gradient(135deg, #21c064, #189a4f);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(33, 192, 100, 0.35);
}
p[onclick*="getRegistration"]:active {
	transform: translateY(0);
}

/* Language flag icon polish */
#intro_lang {
	margin-top: 18px;
	opacity: 0.8;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
#intro_lang:hover {
	opacity: 1;
	transform: scale(1.08);
}
#intro_lang img.intro_lang {
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Footer polish */
#main_footer {
	position: relative;
	z-index: 1;
	color: rgba(255,255,255,0.55);
	font-size: 12.5px;
}
#main_footer ul li a {
	color: rgba(255,255,255,0.55);
	transition: color 0.18s ease;
}
#main_footer ul li a:hover {
	color: #21c064;
}

/* Mobile tweaks */
@media (max-width: 480px) {
	#login_all {
		max-width: 92%;
		border-radius: 16px;
	}
	.login_text .bold.text_xlarge {
		font-size: 22px;
	}
	p[onclick*="getRegistration"] {
		padding: 12px 0;
		font-size: 14px;
	}
}


/* ================================
   SOCIAL AREA — LOGIN / REGISTER / GUEST MODAL UPGRADE
   ================================ */

/* Modal backdrop — darker blur behind the popup */
.modal_back {
	background: rgba(0, 0, 0, 0.65) !important;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* The popup card itself */
.small_modal_in, .large_modal_in {
	background: #17181c;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
	overflow: hidden;
	animation: saModalIn 0.28s ease-out;
}
@keyframes saModalIn {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close (X) button */
.modal_close {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease, transform 0.18s ease;
	margin: 12px 12px 0 auto;
}
.modal_close:hover {
	background: rgba(255, 60, 60, 0.15);
	transform: rotate(90deg);
}
.modal_close i {
	color: #fff;
	font-size: 13px;
}

/* Modal title */
.modal_title {
	font-size: 21px;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	padding: 6px 20px 18px;
	letter-spacing: 0.2px;
}

/* Input fields */
.full_input {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1.5px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 13px 16px;
	color: #ffffff;
	font-size: 14.5px;
	margin-bottom: 14px;
	box-sizing: border-box;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.full_input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}
.full_input:focus {
	outline: none;
	border-color: #21c064;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(33, 192, 100, 0.15);
}

/* Modal content padding */
#login_form_box .modal_content,
.modal_content.small_modal_content {
	padding-left: 22px;
	padding-right: 22px;
}

/* Primary action button (Login / Register / Guest submit) */
.theme_btn.full_button {
	width: 100%;
	background: linear-gradient(135deg, #21c064, #189a4f);
	border: none;
	border-radius: 12px;
	padding: 14px 0;
	font-size: 15.5px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.3px;
	box-shadow: 0 8px 20px rgba(33, 192, 100, 0.3);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	cursor: pointer;
}
.theme_btn.full_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(33, 192, 100, 0.4);
	filter: brightness(1.05);
}
.theme_btn.full_button:active {
	transform: translateY(0);
}

/* Modal control area spacing */
.modal_control {
	padding: 4px 22px 24px;
}

/* Forgot password link */
.forgot_password {
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
	transition: color 0.18s ease;
}
.forgot_password:hover {
	color: #21c064;
}
.forgot_pass_elem {
	text-align: center;
}

/* Generic bclick sub-links inside modals (e.g. "Already have an account? Login") */
.modal_content .bclick.sub_text,
.modal_control .bclick.sub_text {
	color: rgba(255, 255, 255, 0.55);
	transition: color 0.18s ease;
}
.modal_content .bclick.sub_text:hover,
.modal_control .bclick.sub_text:hover {
	color: #21c064;
}

/* Mobile tweaks */
@media (max-width: 480px) {
	.small_modal_in, .large_modal_in {
		border-radius: 16px;
		width: 92% !important;
		max-width: 92% !important;
	}
	.modal_title {
		font-size: 19px;
	}
}


/* ================================
   SOCIAL AREA — UNIFIED AUTH TABS STYLING
   ================================ */

.sa-auth-tabs {
	display: flex !important;
	gap: 6px !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border-radius: 12px !important;
	padding: 5px !important;
	margin: 18px 22px 4px !important;
}

.sa-tab {
	flex: 1 !important;
	text-align: center !important;
	padding: 9px 4px !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: rgba(255, 255, 255, 0.55) !important;
	cursor: pointer !important;
	transition: background 0.18s ease, color 0.18s ease !important;
	user-select: none !important;
}

.sa-tab:hover {
	color: rgba(255, 255, 255, 0.85) !important;
	background: rgba(255, 255, 255, 0.05) !important;
}

.sa-tab-active {
	background: linear-gradient(135deg, #21c064, #189a4f) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(33, 192, 100, 0.3) !important;
}

@media (max-width: 480px) {
	.sa-auth-tabs {
		margin: 14px 14px 4px !important;
	}
	.sa-tab {
		font-size: 12px !important;
		padding: 8px 2px !important;
	}
}