@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #000;
	font-family: 'Cairo', sans-serif;
	line-height: 22px;
	font-size: 14px;
	width: 100%;
	min-height: 100vh;
	caret-color: transparent;
}

.auth-main{
	min-height: 100vh;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 25px 10px;
	padding-bottom: 120px;
}

input.form-control {
	width: 100%;
	height: 50px;
	-webkit-border-radius: 25px;
	border-radius: 25px;
}

/* RTL Form Controls */
html[dir="rtl"] input.form-control {
	text-align: right;
	padding-right: 15px;
	padding-left: 40px;
	direction: rtl;
}

.form-control {
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    -webkit-border-radius: 25px;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    backdrop-filter: blur(10px);
    caret-color: #1e3c72;
    caret-shape: block;
    caret-width: 5px;
}

a {
    color: #535353;
}

a:hover, a:focus {
	color: #6e6e6e;
    text-decoration: none;
}

.no-padding {
    padding: 0;
}

.fitxt-center {
	z-index:1;
	text-align: center;
}

.img-hol-p {
	padding-bottom: 22px;
}

/* image area */
.image-area {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	height: 600px;
	border-radius: 20px;
	z-index: 1;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-area:before {
	display: none;
}

.image-area .content{
	height: 100px;
	padding: 150px 0;
}

.image-area .image-hader {
	padding-bottom: 22px;
}

.image-area .image-hader h2{
	color: #fff;
	text-transform: uppercase;
	position: relative;
	font-size: 28px;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-area .image-hader h2:before {
	display: none;
}

.content .address p{
	color: #fff;
	font-size: 13px;
	font-weight: normal;
	padding-bottom: 10px;
}

.f-social-links a span {
    font-size: 16px;
    color: #fff;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 43px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.f-social-links a span:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    background: #87CEEB;
    z-index: -1;
    border-radius: 50%;
}

.f-social-links a span:hover:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    background: #87CEEB;
    border-radius: 50%;
}

/* sign area */
.sign-area {
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
    color: #333;
    width: 100%;
    height: 566px;
    border-radius: 20px;
    padding: 3.5em 6em;
    margin-top: 17px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* RTL Sign Area */
html[dir="rtl"] .sign-area {
    border-radius: 20px;
}

.sign-area::before {
    border-left: 60px solid rgba(255, 255, 255, 0.95);
    border-top: 70px solid transparent;
    border-bottom: 70px solid transparent;
    content: '';
    height: 0;
    right: -60px;
    width: 0;
    position: absolute;
    pointer-events: none;
    top: 213px;
}

/* RTL Sign Area Arrow */
html[dir="rtl"] .sign-area::before {
    border-right: 60px solid rgba(255, 255, 255, 0.95);
    border-left: 0;
    left: -60px;
    right: auto;
}

.sign-area .sign-hader {
	text-align: center;
	padding-top: 30px;
	padding-bottom: 30px;
}

.sign-area .sign-hader img {
	display: none;
}

/* btn round */
.btn-round {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	border: none;
	margin-top: 25px;
	height: 50px;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
	box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn-round:hover,
.btn-round:focus,
.btn-round:active {
    background: linear-gradient(135deg, #0f2a5a 0%, #1a3d7a 100%);
    color: #fff;
    border: none;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

/* Visitor Registration Button */
.btn-visitor {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    height: 50px !important;
    line-height: 26px !important;
}

.btn-visitor:hover,
.btn-visitor:focus {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

.btn-visitor:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.forgot-text {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
}

/* RTL Forgot Text */
html[dir="rtl"] .forgot-text {
	flex-direction: row-reverse;
}

.sign-footer p {
	color: #444;
	text-align: center;
	margin-top: 30px !important;
}

.forgot-header {
	color: #545454;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 4px;
	background: #212121;
	text-align: center;
}

.forgot-header h4 {
	color:#fff;
	margin-top:0;
	margin-bottom:6px;
}

.alert-msg {
	color: #6ca115;
    padding: 8px;
	margin-top: -8px;
    margin-bottom: 12px;
    border: 1px solid #6ca115;
    border-radius: 4px;
	background: #212121;
	text-align: center;
}
			
.alert-msg.danger {
	color: #de1313;
    border-color: #de1313;
}

/* form - input icon */
.input-group-icon {
	width: 100%;
	table-layout: fixed;
}

.input-group-icon input.form-control {
	font-size: 1.2rem;
	padding-right: 36px;
}

.input-group-icon input.form-control:first-child,
.input-group-icon input.form-control:last-child {
	-webkit-border-radius: 500px;
	border-radius: 500px;
}

.input-group-icon .input-group-addon {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	padding: 0;
	border: 0 none;
	width: 50px;
	z-index: 5;
	pointer-events: none;
	background: transparent !important;
}

.input-group-icon .input-group-addon span.icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 20px;
	border: 0;
	z-index: 6;
	width: auto;
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	padding: 0;
	background: transparent !important;
	line-height: 1;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	pointer-events: none;
	color: #667eea;
	font-size: 18px;
}

.input-group-icon .input-group-addon span.icon i {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Remove any Bootstrap or framework backgrounds */
.input-group-addon {
	background: transparent !important;
	border: none !important;
}

.input-group-icon .input-group-addon + input.form-control {
	padding-right: 12px;
	padding-left: 50px;
	border-radius: 25px;
}

/* RTL Input Group Icons */
html[dir="rtl"] .input-group-icon .input-group-addon {
	left: auto;
	right: 0;
}

html[dir="rtl"] .input-group-icon .input-group-addon span.icon {
	left: auto;
	right: 20px;
}

html[dir="rtl"] .input-group-icon .input-group-addon + input.form-control {
	padding-left: 12px;
	padding-right: 50px;
	text-align: right;
}

/* Mobile RTL Icon Fixes */
@media(max-width:991px) {
	html[dir="rtl"] .input-group-icon .input-group-addon {
		left: auto;
		right: 0;
	}
	
	html[dir="rtl"] .input-group-icon .input-group-addon span.icon {
		left: auto;
		right: 20px;
	}
	
	html[dir="rtl"] .input-group-icon .input-group-addon + input.form-control {
		padding-right: 50px;
		padding-left: 15px;
		text-align: right;
		direction: rtl;
	}
	
	/* Ensure icons are properly positioned inside fields on mobile */
	.input-group-icon .input-group-addon {
		width: 50px;
	}
	
	.input-group-icon .input-group-addon span.icon {
		left: 20px;
		font-size: 20px;
	}
	
	/* Mobile Form Adjustments */
	.form-group {
		margin-bottom: 20px;
	}
	
	.btn-round {
		height: 55px;
		font-size: 18px;
		margin-top: 30px;
	}
	
	.sign-area .sign-hader {
		padding-top: 25px;
		padding-bottom: 25px;
	}
	
	.sign-area .sign-hader img {
		display: none;
	}
	
	.sign-area .sign-hader h2 {
		font-size: 24px;
		margin-bottom: 0;
	}
}

/* Form - Custom Checkbox */
.checkbox-replace .i-checks {
	padding-left: 20px;
	cursor: pointer;
	margin-bottom: 0;
}

/* RTL Checkbox */
html[dir="rtl"] .checkbox-replace .i-checks {
	padding-left: 0;
	padding-right: 20px;
}

.checkbox-replace .i-checks input {
	position: absolute;
	margin-left: -20px;
	opacity: 0;
}

/* RTL Checkbox Input */
html[dir="rtl"] .checkbox-replace .i-checks input {
	margin-left: 0;
	margin-right: -20px;
}

.checkbox-replace .i-checks input:checked + span .active {
	display: inherit;
}

.checkbox-replace .i-checks > span {
	margin-left: -20px;
}

/* RTL Checkbox Span */
html[dir="rtl"] .checkbox-replace .i-checks > span {
	margin-left: 0;
	margin-right: -20px;
}

.checkbox-replace .i-checks > span .active {
	display: none;
}

.checkbox-replace .i-checks > i {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-top: -2px;
	margin-right: 4px;
	margin-left: -20px;
	line-height: 1;
	vertical-align: middle;
	background-color: transparent;
	border: 1px solid #444;
}

/* RTL Checkbox Icon */
html[dir="rtl"] .checkbox-replace .i-checks > i {
	margin-left: 4px;
	margin-right: -20px;
}

html.dark .checkbox-replace .i-checks > i {
	border-color: #535353;
}

.checkbox-replace .i-checks > i:before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 10px;
	height: 10px;
	background-color: #ffbd2e;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}

.checkbox-replace .i-checks input:checked + i {
	border-color: #ffbd2e;
}

html.dark .checkbox-replace .i-checks input:checked + i{
	border-color: #ff685c;
}

.checkbox-replace .i-checks input:checked + i:before {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

html.dark .checkbox-replace .i-checks input:checked + i:before {
	background-color: #ff685c;
}

.checkbox-replace .i-checks input:disabled + i {
	border-color: #dee5e7;
}

.checkbox-replace .i-checks input:disabled + i:before{
	background-color: #dee5e7;
}

html.dark .checkbox-replace .i-checks input:disabled + i{
	border-color: #4c4c4d;
}

html.dark .checkbox-replace .i-checks input:disabled + i:before{
	background-color: #4c4c4d;
}

/* Forms Validations */
label.valid {
	display: inline-block;
	text-indent: -9999px;
}

span.error {
	color: #C10000;
	font-size: 0.9em;
	font-weight: normal;
	margin-top: -5px;
	margin-bottom: 0;
	padding: 0;
}

/* animation - disabled */
.slideIn {
	visibility: visible !important;
}

/* Custom Caret Animation */
@keyframes smoothBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* media queries */
@media(max-width:991px) {
    .sign-area {
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        border-radius: 20px;
        margin-top: 20px;
        height: auto;
        min-height: 500px;
    }

	.sign-area::before {
	    display: none;
	}

	.sign-area {
	    padding: 2.5em 2em;
	}

	.w-full {
	    padding: 8px 5px;
	}
	
	/* Mobile Image Area Adjustments */
	.image-area {
		height: auto;
		min-height: 500px;
		margin-bottom: 20px;
	}
	
	.image-area .content {
		padding: 80px 0;
	}
	
	.image-area .image-hader h2 {
		font-size: 32px;
		margin-bottom: 25px;
	}
	
	.image-area .img-hol-p {
		padding-bottom: 25px;
	}
	
	.image-area .img-hol-p img {
		height: 120px;
	}
	
	.image-area .address p {
		font-size: 16px;
		margin-bottom: 25px;
	}
	
	.f-social-links {
		margin-top: 25px;
	}
}

@media(max-width:1199px) {
	.sign-area::before {
	    border-left-width: 50px; 
	    border-top-width: 60px; 
	    border-bottom-width: 60px; 
	    right: -50px;
	    top: 223px;
	}
}

/* RTL Media Queries */
@media(max-width:1199px) {
	html[dir="rtl"] .sign-area::before {
	    border-right-width: 50px;
	    border-left-width: 0;
	    left: -50px;
	    right: auto;
	}
}

/* Mission and Vision Styling - Desktop Footer */
.vision-mission-text-desktop {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Cairo', sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-radius: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    text-align: right;
    direction: rtl;
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

/* Hide desktop footer on mobile */
@media(max-width:991px) {
    .vision-mission-text-desktop {
        display: none;
    }
}

/* Hide mobile mission/vision on desktop */
@media(min-width:992px) {
    .slideIn .vision-mission-text {
        display: none;
    }
}

.vision-mission-text-desktop div,
.vision-mission-text div {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vision-mission-text-desktop div:last-child,
.vision-mission-text div:last-child {
    margin-bottom: 0;
}

/* Mobile Mission and Vision */
@media(max-width:991px) {
	.vision-mission-text {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		margin: 20px;
		width: auto;
		padding: 20px 25px;
		border-radius: 15px;
		border: 2px solid rgba(255, 255, 255, 0.3);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
		background: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		color: #fff;
	}
	
	.auth-main {
		padding-bottom: 25px;
	}
	
	/* Mobile Layout Order */
	.slideIn {
		display: flex;
		flex-direction: column;
	}
	
	/* White block (login form) first */
	.col-lg-6.col-lg-offset-right-1.col-md-6.col-md-offset-right-1.col-sm-12.col-xs-12 {
		order: 1;
	}
	
	/* Blue block (image area) second */
	.col-lg-4.col-lg-offset-1.col-md-4.col-md-offset-1.col-sm-12.col-xs-12 {
		order: 2;
	}
	
	/* Mission/Vision block third */
	.vision-mission-text {
		order: 3;
		margin-top: 0;
	}
}