@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

* {
	font-family: 'Cairo', sans-serif;
}

.g-recaptcha {
	margin: 1rem 0;
	display: flex;
	justify-content: center;
}

body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-attachment: fixed;
	min-height: 100vh;
	overflow-x: hidden;
}

.login-container {
	backdrop-filter: blur(20px);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-text {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

input {
	text-align:right;
}

.input-group {
	position: relative;
	margin-bottom: 1rem;
}

.input-field {
	width: 100%;
	padding: 0.875rem 3rem 0.875rem 0.875rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
}

.input-field:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

.input-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	transition: color 0.3s ease;
}

.input-field:focus + .input-icon {
	color: #667eea;
}

.section-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #4f46e5;
	margin: 1.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e2e8f0;
	text-align: right;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.full-width {
	grid-column: 1 / -1;
}

.btn-register {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.btn-register:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

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

.btn-register::before {
	content: '';
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: right 0.5s;
}

.btn-register:hover::before {
	right: 100%;
}

.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: float 8s ease-in-out infinite;
}

/* Unique placement per bubble */
.shape:nth-child(1) { width: 60px; height: 60px; top: 10%; left: 15%; animation-duration: 6s; }
.shape:nth-child(2) { width: 90px; height: 90px; top: 30%; left: 70%; animation-duration: 9s; }
.shape:nth-child(3) { width: 40px; height: 40px; top: 55%; left: 25%; animation-duration: 7s; }
.shape:nth-child(4) { width: 120px; height: 120px; top: 70%; left: 80%; animation-duration: 11s; }
.shape:nth-child(5) { width: 75px; height: 75px; top: 85%; left: 50%; animation-duration: 8s; }
.shape:nth-child(6) { width: 50px; height: 50px; top: 40%; left: 5%; animation-duration: 6.5s; }
.shape:nth-child(7) { width: 100px; height: 100px; top: 15%; left: 85%; animation-duration: 10s; }
.shape:nth-child(8) { width: 45px; height: 45px; top: 65%; left: 60%; animation-duration: 7.5s; }

@keyframes float {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-20px) translateX(12px); }
  100% { transform: translateY(0) translateX(0); }
}

.alert {
	padding: 1rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	animation: slideIn 0.5s ease-out;
	border-right: 4px solid;
}

.alert-error {
	background: #fed7d7;
	border-color: #f56565;
	color: #2d3748;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.select-field {
	width: 100%;
	padding: 0.875rem 3rem 0.875rem 0.875rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	appearance: none;
	cursor: pointer;
}

.textarea-field {
	width: 100%;
	padding: 0.875rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	min-height: 100px;
	resize: vertical;
}

.textarea-field:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

.checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.password-strength {
	height: 4px;
	border-radius: 2px;
	margin-top: 0.5rem;
	transition: all 0.3s ease;
}

.strength-weak { background: #f56565; width: 25%; }
.strength-fair { background: #ed8936; width: 50%; }
.strength-good { background: #ecc94b; width: 75%; }
.strength-strong { background: #48bb78; width: 100%; }

.conditional-field {
	display: none;
	animation: fadeIn 0.3s ease-out;
}

.conditional-field.show {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.tooltip-box {
	text-align: right;
	direction: rtl;
}

.tooltip-box .arrow {
	right: 12px;
	left: auto;
}

@media (max-width: 768px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
	
	.login-container {
		padding: 1.5rem;
		margin: 1rem;
	}
}

#fullNameErr, #emailErr, #phoneErr, #mobile2Err, #emgPhoneErr ,#nidErr, #ageRangeError {
	color: red;
}

[data-enter="heroup"] {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: all 0.9s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

[data-enter="heroup"].form-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-enter="heroup"] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s cubic-bezier(.22,1,.36,1);
}

[data-enter="heroup"].form-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-enter="heroup"].form-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}

[data-enter="heroup"].form-visible > *:nth-child(2) {
  transition-delay: 0.15s;
}

[data-enter="heroup"].form-visible > *:nth-child(3) {
  transition-delay: 0.25s;
}


.input-group {
  opacity: 0;
  transform: translateX(0);
  transition: all 1s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

.input-group[data-enter="right"] {
  transform: translateX(60px);
}

.input-group[data-enter="left"] {
  transform: translateX(-60px);
}

.input-group.form-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-enter] {
  opacity: 0;
  transform: translateX(0);
  transition: all 1s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

[data-enter="right"] {
  transform: translateX(60px);
}

[data-enter="left"] {
  transform: translateX(-60px);
}

[data-enter].form-visible {
  opacity: 1;
  transform: translateX(0);
}

.checkbox-item {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}

.checkbox-group.form-visible .checkbox-item {
  opacity: 1;
  transform: translateY(0);
}

@keyframes titleFlipBounce {
  0% {
    transform: rotateX(70deg) translateY(20px);
  }
  60% {
    transform: rotateX(0deg) translateY(-12px);
  }
  100% {
    transform: rotateX(0deg) translateY(0);
  }
}

.section-title {
  opacity: 0;
  transform: rotateX(70deg) translateY(50px);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(.22,1.4,.36,1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.section-title.form-visible {
  opacity: 1;
  animation: titleFlipBounce 0.9s cubic-bezier(.22,1.3,.36,1) forwards;
}

.error-small-msg {
    font-size: 100%;
    color: red;
    /*display: inline-block;*/
    /*animation: errorPulse 1.2s ease-in-out infinite;*/
}

/* subtle attention animation for error-small-msg */
@keyframes errorPulse {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-2px); }
    50%  { transform: translateX(2px); }
    75%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}