
@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,900");

* {
	box-sizing: border-box;
}

body {
	background: url('/images/login_bg.jpg') no-repeat center center fixed;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
    font-family: "Poppins", sans-serif !important;
	height: 100vh;
}

h1 {
	font-weight: 500;
	margin: 0;
    font-family: "Poppins", sans-serif !important;
    font-size: 30px;
}

h2 {
	text-align: center;
}

p {
	font-size: 14px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
}

a {
	color: #333;
	font-size: 14px;
	text-decoration: none;
	margin: 15px 0;
}

button {
	border-radius: 20px;
	border: 1px solid #4F5D2F;
	background-color: #4F5D2F;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
}

button:active {
	transform: scale(0.95);
}

button:focus {
	outline: none;
}

button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
}

form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}

input {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}

/* Ensure password input matches width of other inputs */
.form-container input[type="password"] {
	width: 100% !important;
	display: block;
	max-width: 100%;
}

.container {
	background-color: #fff;
	border-radius: 10px;
  	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
			0 10px 10px rgba(0,0,0,0.22);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 480px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.sign-in-container a:hover{
    color: #998b69;
}

.container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {
	0%, 49.99% {
		opacity: 0;
		z-index: 1;
	}
	
	50%, 100% {
		opacity: 1;
		z-index: 5;
	}
}

.overlay-container {
	position: absolute;
	top: 0%;
	left: 50%;
	width: 50%;
	height: 110vh;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}

.container.right-panel-active .overlay-container{
	transform: translateX(-100%);
}

.overlay {
	background: #4F5D2F;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
  	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay .overlay-panel .h1, .overlay .overlay-panel p {
    color: #FFFFFF;
}

.container.right-panel-active .overlay {
  	transform: translateX(50%);
}

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-left {
	transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
	transform: translateX(0);
}

.overlay-right {
	right: 0;
	transform: translateX(0);
}

.container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.back-btn{
	position:absolute;
	top:16px;
	left:16px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:40px;
	height:40px;
	border-radius:50%;
	background:#8B4513;
	color:#fff;
	text-decoration:none;
	box-shadow:0 2px 6px rgba(0,0,0,0.2);
	z-index:200;
}

.back-btn:hover {
	opacity: .9;
}

.back-btn i {
	font-size: 18px;
	color: #fff;
}

#container {
	position: relative;
}

/* Hidden by default; shown on mobile */
.mobile-switch {
	display: none;
	margin-bottom: 0;
	margin-top: 18px;
	position: relative;
	z-index: 300;
}

/* Toast theme customization */
:root {
	--theme-brown: #8B4513;
	--theme-green: #2E7D32;
}

#statusToast.toast {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
}

#statusToast .toast-header {
	border-bottom: none;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

#statusToast .toast-body {
	padding: 12px 16px;
	text-align: center;
}

#statusToast.toast-success .toast-header {
	background: var(--theme-green);
	color: #ffffff;
}

#statusToast.toast-error .toast-header {
	background: var(--theme-brown);
	color: #ffffff;
}

#statusToast .close {
	color: #ffffff;
	opacity: 0.9;
	position: absolute;
	right: 8px;
	top: 8px;
}

#statusToast .close:hover {
	opacity: 1;
}

/* Center the toast title and override Bootstrap's mr-auto */
#statusToastTitle {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

@media (max-width: 1024px) {
	body {
		height: auto;
		min-height: 100vh;
		padding: 20px 12px;
		/* Fix mobile scroll jank caused by background-attachment: fixed */
		background-attachment: scroll !important;
		background-position: center top;
		background-size: cover;
		/* Use modern viewport units to stabilize height on mobile */
		min-height: 100svh;
		min-height: 100dvh;
	}

	.container {
		width: 100%;
		max-width: 420px;
		min-height: auto;
		border-radius: 12px;
		overflow: visible;
	}

	/* Hide overlay UI on mobile */
	.overlay-container,
	.overlay {
		display: none !important;
	}

	/* Make form panes flow vertically */
	.form-container {
		position: relative;
		top: auto;
		height: auto;
		width: 100%;
		transform: none !important;
		transition: none;
	}

	.sign-in-container,
	.sign-up-container {
		left: auto;
		width: 100%;
		opacity: 1;
		z-index: auto;
		transform: none !important;
	}

	/* Show only one form at a time on mobile */
	.sign-up-container {
		display: none;
	}
	.container.right-panel-active .sign-in-container {
		display: none !important;
	}
	.container.right-panel-active .sign-up-container {
		display: block !important;
	}

	/* Space between stacked forms */
	.sign-up-container {
		margin-top: 16px;
	}

	/* Disable desktop toggle transforms */
	.container.right-panel-active .sign-in-container,
	.container.right-panel-active .sign-up-container {
		transform: none !important;
	}

	form {
		padding: 20px;
	}

	input {
		font-size: 16px; 
	}

	.back-btn {
		top: 12px;
		left: 12px;
	}

	/* Mobile switch styles */
	.mobile-switch {
		display: flex !important;
		gap: 8px;
		align-items: center;
		justify-content: center;
		margin: 8px auto 16px;
		background: #ffffff;
		border-radius: 999px;
		padding: 6px;
		box-shadow: 0 6px 20px rgba(0,0,0,0.12);
		width: 100%;
		max-width: 420px;
	}

	.mobile-switch button {
		flex: 1;
		border: none;
		border-radius: 999px;
		padding: 10px 12px;
		background: transparent;
		color: #4F5D2F;
		font-weight: 600;
		text-transform: none;
		letter-spacing: 0.3px;
		font-size: 16px;
		transition: background 0.2s, color 0.2s;
	}
	.mobile-switch button[aria-selected="true"] {
		background: #4F5D2F;
		color: #ffffff;
	}

	h1 {
		font-weight: 500;
		margin: 0;
		font-family: "Poppins", sans-serif !important;
		font-size: 25px;
	}

	.back-btn {
		top: -2%;
		left: 2%;
	}
}