#loginmodal .modal-dialog {
	max-width: 900px;
	margin: 1.75rem auto;
	top: 6%;
}

#loginmodal .modal-content {
	background: transparent;
	border: none;
	border-radius: 12px;
	overflow: hidden;
}

#loginmodal .modal-body {
	padding: 0;
}

.login-modal-wrapper {
	display: flex;
	height: 600px;
	background: var(--MODAL_BG);
}

.login-left-panel {
	flex: 1;
	background: var(--MODAL_BG);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	height: 600px;
	box-sizing: border-box;
}

.login-full-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.login-left-panel .welcome-bonus-text {
	position: absolute;
	bottom: 60px;
	color: var(--MODAL_TXT_COLOR);
	font-family: var(--SECONDARY_FONT_FAMILY);
	font-size: var(--HEADER_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
	letter-spacing: var(--SECONDARY_FONT_LETTER_SPACING);
	text-align: center;
	padding: 10px 18px;
	border-radius: 8px;
	width: calc(100% - 50px);
	margin: 0 25px 20px 25px;
}

/* Right Panel - Login Form */
.login-right-panel {
	flex: 1;
	background: var(--MODAL_BG);
	padding: 25px 40px 0 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 600px;
	box-sizing: border-box;
}

.btn-modalClose {
	position: absolute;
	top: 38px;
	right: 40px;
	width: 40px;
	height: 38px;
	border-radius: 10px;
	background: var(--MODAL_CLOSE_BTN_BG);
	border: none;
	color: var(--MODAL_CLOSE_BTN_COLOR);
	font-size: var(--HEADER_FONT_SIZE);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.btn-modalClose:hover {
	filter: var(--THIRD_BTN_HOVER_BG);
}

.login-form-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
	max-height: 400px;
    overflow-y: auto;
}

.top-section {
	flex-shrink: 0;
}

.login-title {
	color: var(--MODAL_HEADER_TXT_COLOR);
	font-family: var(--SECONDARY_FONT_FAMILY);
	font-size: var(--HEADER_FONT_SIZE);
	font-weight: var(--MED_FONT_WEIGHT);
	letter-spacing: var(--SECONDARY_FONT_LETTER_SPACING);
	margin-bottom: 0;
	margin-top: 0;
	padding-bottom: 25px;
	padding-right: 40px;
}

/* Form Groups */
#loginmodal .form-group {
	margin-bottom: 20px;
}

#loginmodal .form-group.text-right {
	margin-bottom: 24px;
}

.bottom-section .form-group:last-child {
	margin-bottom: 0;
}

/* Input Wrappers */
.input-wrapper {
	position: relative;
	width: 100%;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="password"],
.input-wrapper select {
	width: 100%;
	height: 44px;
	padding: 13px 23px;
	background: var(--INPUT_BG);
	border: var(--INPUT_BORDER);
	border-radius: 10px;
	color: var(--INPUT_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	transition: all 0.3s ease;
	outline: none;
	box-sizing: border-box;
}

.input-wrapper input::placeholder {
	color: var(--INPUT_PLACEHOLDER_TXT_COLOR);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
	box-shadow: var(--PRIMARY_BTN_SHADOW);
}

select.prefix-select {
    width: 91px;
	height: 44px;
	padding-right: 10px;
	background-position: right 5px center;
}

/* Password Wrapper with Eye Icon */
.password-wrapper {
	position: relative;
}

.password-wrapper input {
	padding-right: 45px;
}

.loginPswdVisi- {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ICON_DISABLED_BG);
	cursor: pointer;
	font-size: var(--ICON_SMALL_FONT_SIZE);
	transition: color 0.3s ease;
}

.loginPswdVisi-:hover {
	color: var(--THIRD_BTN_HOVER_BG);
}

.flex-d-row {
	display: flex;
	gap: 10px;
}

.otp-wrapper {
	position: relative;
}

.otp-wrapper input {
	flex: 1;
}

.forgot-link {
	color: var(--TXT_COLOR_4);
	font-size: var(--SUBBODY_TXT_FONT_SIZE);
	text-decoration: none;
	transition: color 0.3s ease;
	cursor: pointer;
}

.forgot-link:hover {
	color: var(--SECONDARY_COLOR);
	text-decoration: none;
}

.btn-signin {
	padding: 13px 24px;
	background: var(--PRIMARY_BTN_BG);
	border: none;
	border-radius: 10px;
	color: var(--PRIMARY_BTN_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px var(--PRIMARY_BTN_SHADOW);
}

.btn-signin:hover {
	filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
	transform: translateY(-2px);
}

.btn-signin:active {
	transform: translateY(0);
}

.separator-line {
	position: relative;
	text-align: center;
	margin: 20px 0 24px 0;
}

.separator-line::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: var(--PRIMARY_INACTIVE_BTN_BG);
}

.separator-line span {
	position: relative;
	background: var(--MODAL_BG);
	padding: 0 15px;
	color: var(--TXT_COLOR_4);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--LIGHT_FONT_WEIGHT);
	z-index: 1;
}

.btn-otp {
	padding: 13px 23px;
	background: var(--SECONDARY_BTN_BG);
	border: var(--SECONDARY_BTN_BORDER);
	box-shadow: var(--SECONDARY_BTN_SHADOW);
	color: var(--SECONDARY_BTN_COLOR);
	border-radius: 10px;
	font-size: var(--SUBBODY_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-otp:hover {
	filter: var(--SECONDARY_BTN_HOVER_FILTER_BG);
}

.btn-otp-sms {
	padding: 13px 23px;
	background: var(--SECONDARY_BTN_BG);
	border: var(--SECONDARY_BTN_BORDER);
	box-shadow: var(--SECONDARY_BTN_SHADOW);
	color: var(--SECONDARY_BTN_COLOR);
	border-radius: 10px;
	font-size: var(--SUBBODY_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}
.btn-otp-sms:hover {
	filter: var(--SECONDARY_BTN_HOVER_FILTER_BG);
}

.bottom-section {
	flex-shrink: 0;
	padding: 20px 0 40px 0;
}

.other-login-tabs {
	margin-top: 0;
}

.nav-tabs-bottom {
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
	border: none;
}

.nav-tabs-bottom .nav-item {
	flex: 1;
}

.nav-link-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border: var(--THIRD_BTN_BORDER);
    border-radius: 10px;
    color: var(--THIRD_BTN_COLOR);
    font-size: var(--BUTTON_MED_FONT_SIZE);
    font-weight: var(--LIGHT_FONT_WEIGHT);
    font-family: var(--PRIMARY_FONT_FAMILY);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.nav-link-bottom:hover,
.nav-link-bottom.active {
	background: var(--THIRD_BTN_BG);
	color: var(--THIRD_BTN_HOVER_COLOR);
	text-decoration: none;
}

.nav-link-bottom i {
	font-size: var(--ICON_SMALL_FONT_SIZE);
}

/* Signup Section */
.signup-section {
	margin-top: 0;
	margin-bottom: 20px;
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
}

.new-here-text {
	color: var(--MODAL_TXT_COLOR);
	font-weight: var(--LIGHT_FONT_WEIGHT);
	margin-right: 5px;
}

.signup-link {
	color: var(--SECONDARY_COLOR);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.signup-link:hover{
	color: var(--SECONDARY_COLOR);
	text-decoration: none;
}

/* Remember me row */
.form-group.remember {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: -6px;
	margin-bottom: 16px;
}

.form-group.remember label {
	color: var(--FORM_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
	margin: 0;
	cursor: pointer;
}

#loginmodal input[type="checkbox"]#rmbMe {
	width: 18px;
	height: 18px;
	margin: 0;
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: var(--INPUT_BG);
	border: var(--INPUT_BORDER);
	accent-color: var(--ACTIVE_BTN_BG);
	vertical-align: middle;
	display: inline-grid;
	place-content: center;
	transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

#loginmodal input[type="checkbox"]#rmbMe:focus {
	outline: none;
	box-shadow: var(--PRIMARY_BTN_SHADOW);
}

#loginmodal input[type="checkbox"]#rmbMe::after {
	content: "";
	width: 9px;
	height: 5px;
	border: 2px solid var(--PRIMARY_BTN_COLOR);
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg) scale(0);
	transition: transform .15s ease-in-out;
}

#loginmodal input[type="checkbox"]#rmbMe:checked {
	background: var(--ACTIVE_BTN_BG);
	border-color: var(--ACTIVE_BTN_BG);
}
#loginmodal input[type="checkbox"]#rmbMe:checked::after {
	transform: rotate(-45deg) scale(1);
}

.form-group.remember-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.remember-row .remember-box {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.inputmsg {
	color: var(--IMPORTANT_COLOR);
	font-size: var(--DEFAULT_FONT_SIZE);
	display: block;
	margin: 5px 0 0 5px;
}

small {
	color: var(--TXT_COLOR_3);
	font-size: var(--DEFAULT_FONT_SIZE);
	display: block;
	margin: 5px 0 0 5px;
}

#loginmodal label {
    color: var(--TXT_COLOR_4);
    font-size: var(--SUBBODY_TXT_FONT_SIZE);
    margin-bottom: 6px;
    text-decoration: none;
    cursor: pointer;
}

.info-message {
	background: var(--TAB_BG);
	border-left: 3px solid var(--SECONDARY_COLOR);
	padding: 12px 15px;
	border-radius: 6px;
	color: var(--TXT_COLOR_3);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--LIGHT_FONT_WEIGHT);
	line-height: 1.6;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.info-message i {
	color: var(--SECONDARY_COLOR);
	font-size: var(--SUBHEADER_FONT_SIZE);
	margin-top: 2px;
	flex-shrink: 0;
}

.back-link {
	color: var(--MODAL_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.back-link:hover {
	color: var(--SECONDARY_COLOR);
	text-decoration: none;
}

/* Hide forgot timer placeholder until JS fills content */
#loginmodal #timerValLogin:empty {
	display: none;
}

#forgotPswd-tab-list {
	padding-top: 0;
	width: 100%;
}

#forgotPswd-tab-list.d-none {
	display: none;
}

#forgotPswd-tab-list:not(.d-none) {
	display: block;
}

#forgotPswd-tab-list .tab-content {
	margin-top: 0;
}

.forgot-only-section {
	flex-shrink: 0;
	padding: 20px 0 40px 0;
}

.form- {
	display: none;
}

.form-.show {
	display: block;
}

.tab-pane {
	display: none;
}

.tab-pane.show.active {
	display: block;
}

.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

.text-justify {
	text-align: justify;
}

.w-100 {
	width: 100%;
}

.d-none {
	display: none !important;
}

.mt-3 {
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.login-modal-wrapper {
		flex-direction: column;
		height: auto;
	}
	
	.login-left-panel {
		border-right: none;
		min-height: 300px;
		height: auto;
	}
	
	.login-right-panel {
		padding: 30px 20px;
		height: auto;
		min-height: 400px;
	}
	
	#loginmodal .modal-dialog {
		margin: 1rem;
		max-width: 100%;
	}	
	
	.login-left-panel .welcome-bonus-text {
		width: calc(100% - 40px);
		margin: 0 20px 15px 20px;
	}
	
	.nav-tabs-bottom {
		flex-direction: column;
		gap: 8px;
	}
	
	.nav-link-bottom {
		padding: 12px 16px;
		font-size: 13px;
	}
}

/* Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#loginmodal.show .modal-content {
	animation: fadeIn 0.3s ease;
}

