:root {
    --primary: #02647E;
    --primary-h: #00485B;
	--danger: #DD5850;
}

html, body {
    margin: 0;
    padding: 0;
    display: block;
    min-height: 100%;
    background-color: #fff;
}
html, body {
    height: 100vh;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.f-w-500 {
	font-weight: 800 !important;
}

.row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.align-items-center {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}
.justify-content-center {
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}
    
.h100vh {
    min-height: 100vh;
}
.half {
    min-height: 100vh;
    background-color: #fff;
}
.half, .half .container-fluid > .row {
    min-height: 100vh;
}
.half .bg {
    background-size: cover;
    background-position: center;
}
.half .contents {
    width: 100%;
    max-width: 55vw;
}
.half .bg {
    width: 100%;
    max-width: 45vw;
}

.fw-medium {
    font-weight: 500;
    color: var(--primary) !important;
}
.fw-bold {
    font-weight: 700;
}
.fs-15 {
    font-size: 16px !important;
}

p.my-2 f-12,
p.my-2 f-12,
.half .sticky-top {
    display: none !important;
}
.half .login_section {
    padding: 0 !important;
    min-height: 100vh !important;
}
.half .login_section > .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}
.half .login_section > .container > .row {
    margin: 0 !important;
    height: 100% !important;
}
.half .login_section > .container > .row > [class*=col-] {
    padding: 0 !important;
}
.half .login_box {
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
.half .login_section .login_box #login-form {
    width: 100%;
    height: 100%;
    display: flex;
    text-align: left;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.half .login_section #password-section,
.half .login_section .form-group {
    width: 100%;
}
.auth-logo {
    width: 200px;
    height: 70px;
    display: block;
    margin-bottom: 20px;
}
.btn-outline-secondary {
    min-width: 50px;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #fff !important;
    border-color: var(--primary-h) !important;
    background-color: var(--primary-h) !important;
}
.auth-login-page {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mi-login-page .auth-login-page {
	max-width: 100vw !important;
	margin-inline: 0 !important;
}

/*
.form-control.is-invalid {
	border-color: var(--danger) !important;
}
*/
.form-control.is-invalid:focus {
	border-color: var(--danger) !important;
	outline-color: var(--danger) !important;
}
    
.btn-primary {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--primary-h) !important;
    background-color: var(--primary-h) !important;
    box-shadow: 0 14px 26px -12px rgba(0,0,0, 0.1), 0 4px 23px 0 rgba(0,0,0, 0.1), 0 8px 10px -5px rgba(0,0,0, 0.1);
}
.forgot_pswd a {
    text-decoration: none !important;
}
.forgot_pswd a:hover, .forgot_pswd a:focus, .forgot_pswd a:active {
    text-decoration: none !important;
    color: var(--primary) !important;
}

.auth-workspace {
    padding: 20px;
    border-color: 1px solid #ccc !important;
    background-color: #fff !important;
    border-radius: 1.25rem;
    box-shadow: 0 14px 26px -12px rgba(0,0,0, 0.1), 0 4px 23px 0 rgba(0,0,0, 0.1), 0 8px 10px -5px rgba(0,0,0, 0.1);
}
.auth-workspace .size-60px {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25rem;
    background-color: #f1f1f1;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem !important;
}
.auth-workspace .size-60px img {
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    padding: 0 !important;
    border-radius: 0.375rem !important;
    background-color: transparent !important;
    border: 0 none !important;
}

.signup-a-demo {
	width: 100%;
	max-width: 500px;
	height: auto;
	font-size: 15px;
	margin-top: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 25px;
	/*box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.12);
	padding-top: 15px;
	padding-bottom: 15px;*/
}
.login_box a,
.signup-a-demo > a {
	width: auto;
	font-size: 15px;
	font-weight: 600;
	max-width: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 !important;
	border: 0 none !important;
	display: inline-block;
	max-width: inherit;
	color: var(--primary);
	border-bottom: 1px solid transparent !important;
	transition: all .3s ease-in;
}
.login_box a:hover, .login_box a:focus, .login_box a:active,
.signup-a-demo > a:hover, .signup-a-demo a:focus, .signup-a-demo a:active {
	border-bottom: 1px solid currentColor !important;
}
    
@media (min-width: 768px) {
    .order-md-1 {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }
    .order-md-2 {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }
}
@media (min-width: 992px) {
    .d-lg-flex {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
}

@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }
	.half .contents {
		padding-inline: 30px;
		min-height: 75vh !important;
		max-height: 75vh !important;
	}
    .half .contents, .half .bg {
        width: 100%;
        max-width: 100vw;
    }
    .half .bg {
        height: 100%;
        min-height: 225px;
        max-height: 225px;
        background-position: center 35% !important;
    }
    .col-md-8, .auth-login-page {
        max-width: 450px;
    }
	.auth-login-page .auth-logo {
		margin-bottom: 1.25rem;
	}
	.half .contents > .container-fluid > .row {
		min-height: 75vh !important;
		max-height: 75vh !important;
	}
	.half .login_box {
		height: auto !important;
		margin-bottom: 0.25rem;
	}
	.login_box h3 {
		font-weight: 800 !important;
	}
}

/* Enhanced Social Login Buttons - Only for login page with social buttons */
#login-form a.height_50[onclick*="google"],
#login-form a.height_50[onclick*="facebook"],
#login-form a.height_50[onclick*="twitter"],
#login-form a.height_50[onclick*="linkedin"] {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	height: 50px !important;
	min-height: 50px !important;
	max-height: 50px !important;
	padding: 0 20px !important;
	border: 1px solid #d1d5db !important;
	background-color: #ffffff !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	color: #374151 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#login-form a.height_50[onclick*="google"]:hover,
#login-form a.height_50[onclick*="facebook"]:hover,
#login-form a.height_50[onclick*="twitter"]:hover,
#login-form a.height_50[onclick*="linkedin"]:hover {
	background-color: #f9fafb !important;
	border-color: #9ca3af !important;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1) !important;
	text-decoration: none !important;
}

#login-form a[onclick*="google"] span,
#login-form a[onclick*="facebook"] span,
#login-form a[onclick*="twitter"] span,
#login-form a[onclick*="linkedin"] span {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
	line-height: 1 !important;
}

#login-form a[onclick*="google"] span img,
#login-form a[onclick*="facebook"] span img,
#login-form a[onclick*="twitter"] span img,
#login-form a[onclick*="linkedin"] span img {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	object-fit: contain !important;
	display: block !important;
}

/* Enhanced OR Separator - Only for login page */
#login-form p.position-relative,
#login-form ~ p.position-relative {
	position: relative !important;
	text-align: center !important;
	font-size: 14px !important;
	color: #6b7280 !important;
	font-weight: 400 !important;
	margin: 24px 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#login-form p.position-relative:before,
#login-form p.position-relative:after,
#login-form ~ p.position-relative:before,
#login-form ~ p.position-relative:after {
	content: "" !important;
	flex: 1 !important;
	height: 1px !important;
	background-color: #e5e7eb !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: auto !important;
}

#login-form p.position-relative:before,
#login-form ~ p.position-relative:before {
	margin-right: 16px !important;
}

#login-form p.position-relative:after,
#login-form ~ p.position-relative:after {
	margin-left: 16px !important;
}

@media (max-width: 767.98px) {
	#login-form p.position-relative:before,
	#login-form p.position-relative:after,
	#login-form ~ p.position-relative:before,
	#login-form ~ p.position-relative:after {
		flex: 1 !important;
		content: "" !important;
	}
}

/* Form Field Improvements - Only for login page */
#login-form .form-group label {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #374151 !important;
	margin-bottom: 8px !important;
}

#login-form .form-control {
	height: 50px !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	background-color: #ffffff !important;
	transition: all 0.2s ease !important;
}
#login-form .form-control:focus {
	border-color: var(--w-theme) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(2, 100, 126, 0.1) !important;
}
#login-form .form-control::placeholder {
	color: #9ca3af !important;
	font-size: 15px !important;
}

#login-form .input-group .form-control {
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

/* Button Improvements - Only for login page */
#login-form .btn-primary {
	height: 50px !important;
	padding: 0 24px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border-radius: 8px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#login-form .btn-primary:hover,
#login-form .btn-primary:focus {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
	transform: translateY(-1px) !important;
}

#login-form .btn-secondary,
#login-form ~ .btn-secondary {
	height: 50px !important;
	padding: 0 24px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	background-color: #ffffff !important;
	color: #374151 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
}

#login-form .btn-secondary:hover,
#login-form ~ .btn-secondary:hover {
	background-color: #f9fafb !important;
	border-color: #9ca3af !important;
}

/* Heading Improvements - Only for login box with social buttons */
#login-form h3 {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	margin-bottom: 24px !important;
}
#login-form .btn-secondary:hover,
#login-form ~ .btn-secondary:hover {
	background-color: #f9fafb !important;
	border-color: #9ca3af !important;
}

/* Heading Improvements - Only for login box with social buttons */
#login-form h3 {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	margin-bottom: 24px !important;
}

/* Auth Logo - Keep general as it's used on all auth pages */
.auth-logo {
	margin-bottom: 32px !important;
}

.auth-logo img {
	max-height: 70px !important;
	width: auto !important;
}
