﻿/* ============================================================
   AL MOSAFER VIP — Login Light Mode Only
   جميع أنماط الـ Light Mode للـ Login فقط
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #F4F6F9;
	color: #1A2630;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	min-height: 100vh;
}

h1,
h2,
h3,
h4 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
	color: #1A2630;
}

p {
	margin: 0;
	color: #3E4A56;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
}

input,
select,
textarea {
	font-family: inherit;
}

svg {
	display: block;
}

::selection {
	background: #C49B3C;
	color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 14px;
	border: 1.5px solid transparent;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .2s cubic-bezier(0.4, 0, 0.2, 1), background .2s cubic-bezier(0.4, 0, 0.2, 1), border-color .2s cubic-bezier(0.4, 0, 0.2, 1), color .2s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

	.btn svg {
		flex-shrink: 0;
	}

	.btn:active {
		transform: scale(.96);
	}

.btn-primary {
	background: linear-gradient(135deg, #C49B3C, #D9B050);
	color: #FFFFFF;
	box-shadow: 0 6px 16px -4px rgba(196, 155, 60, 0.4);
}

	.btn-primary:hover {
		box-shadow: 0 10px 24px -6px rgba(196, 155, 60, 0.5);
		transform: translateY(-1px);
		background: linear-gradient(135deg, #D9B050, #C49B3C);
	}

.btn-block {
	width: 100%;
}

.btn-lg {
	padding: 14px 20px;
	font-size: 14.5px;
	border-radius: 14px;
}

.btn-spinner {
	display: none;
	animation: spin .8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.btn.is-loading .btn-label {
	opacity: 0;
}

.btn.is-loading .btn-spinner {
	display: block;
	position: absolute;
}

/* ---------- Login Screen Styles ---------- */
.login-screen {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	background: radial-gradient(1200px 700px at 12% -10%, rgba(196, 155, 60, 0.10) 0%, transparent 55%), radial-gradient(900px 800px at 105% 110%, rgba(74, 122, 148, 0.10) 0%, transparent 55%), #F4F6F9;
	overflow: hidden;
	transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), visibility .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-theme-toggle {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid #B0BCC8;
	background: #FFFFFF;
	color: #3E4A56;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(8px);
}

	.login-theme-toggle:hover {
		border-color: #C49B3C;
		color: #C49B3C;
		background: rgba(196, 155, 60, 0.14);
		transform: scale(1.05);
	}

.login-screen.is-leaving {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.login-bg-glow {
	position: absolute;
	inset: -20%;
	background: conic-gradient(from 180deg at 25% 25%, transparent 0deg, rgba(196, 155, 60, 0.07) 90deg, transparent 180deg), conic-gradient(from 0deg at 80% 75%, transparent 0deg, rgba(74, 122, 148, 0.08) 120deg, transparent 240deg);
	animation: auroraSpin 30s linear infinite;
	filter: blur(50px);
}

@keyframes auroraSpin {
	to {
		transform: rotate(360deg);
	}
}

.login-bg-lines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

/* ---- Stage: split boarding-pass layout ---- */
.login-stage {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 980px;
	min-height: 600px;
	display: flex;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.18);
	animation: loginRise .8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	background: #FFFFFF;
}

@keyframes loginRise {
	from {
		opacity: 0;
		transform: translateY(26px) scale(.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ticket-style perforation */
.login-stage::before,
.login-stage::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #F4F6F9;
	z-index: 3;
	transform: translateX(-50%);
}

.login-stage::before {
	top: -13px;
}

.login-stage::after {
	bottom: -13px;
}

/* ---- Visual half ---- */
.login-visual {
	position: relative;
	flex: 1 1 52%;
	background: radial-gradient(520px 420px at 20% 15%, rgba(196, 155, 60, 0.12) 0%, transparent 60%), linear-gradient(165deg, #E8ECF1 0%, #D5DDE5 60%, #C8D2DC 100%);
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	border-right: 1px dashed rgba(196, 155, 60, 0.4);
}

.visual-vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 80%);
	pointer-events: none;
}

.visual-compass {
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	opacity: .8;
	animation: compassSpin 60s linear infinite;
}

@keyframes compassSpin {
	to {
		transform: rotate(360deg);
	}
}

.flight-route {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: .9;
}

.route-plane use {
	filter: drop-shadow(0 0 6px rgba(196, 155, 60, 0.7));
}

.stamp {
	position: absolute;
	border: 1.5px dashed rgba(196, 155, 60, 0.4);
	border-radius: 50%;
	width: 74px;
	height: 74px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	color: rgba(196, 155, 60, 0.5);
	text-align: center;
}

	.stamp span {
		font-size: 12px;
		font-weight: 700;
		color: rgba(196, 155, 60, 0.8);
		margin-top: 2px;
	}

.stamp-1 {
	top: 22%;
	left: 6%;
	transform: rotate(-14deg);
}

.stamp-2 {
	top: 46%;
	left: 42%;
	transform: rotate(9deg);
}

.stamp-3 {
	top: 10%;
	right: 10%;
	transform: rotate(-6deg);
}

.visual-content {
	position: relative;
	z-index: 2;
}

.visual-brand {
	width: 54px;
	height: 54px;
	border-radius: 15px;
	background: #fff;
	padding: 5px;
	box-shadow: 0 0 0 1px rgba(196, 155, 60, 0.2), 0 12px 32px -8px rgba(196, 155, 60, 0.15);
	margin-bottom: 22px;
	overflow: hidden;
}

	.visual-brand img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}

.login-visual h2 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 28px;
	line-height: 1.25;
	color: #1A2630;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 12px;
	max-width: 380px;
}

.login-visual p {
	font-size: 13.5px;
	color: rgba(26, 38, 48, 0.7);
	max-width: 360px;
	line-height: 1.6;
	margin-bottom: 28px;
}

.visual-stats {
	display: flex;
	gap: 28px;
}

	.visual-stats div {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.visual-stats strong {
		font-family: 'Space Grotesk', 'Inter', sans-serif;
		font-size: 19px;
		color: #C49B3C;
		font-weight: 700;
	}

	.visual-stats span {
		font-size: 10.5px;
		text-transform: uppercase;
		letter-spacing: .06em;
		color: rgba(26, 38, 48, 0.7);
		opacity: 0.6;
	}

/* ---- Form half ---- */
.login-panel {
	flex: 1 1 48%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 44px 40px;
	background: #FFFFFF;
}

.login-panel-inner {
	width: 100%;
	max-width: 340px;
}

.only-mobile-flex {
	display: none;
}

.login-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #1A2630;
}

.brand-mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 1px rgba(196, 155, 60, 0.2), 0 12px 32px -8px rgba(196, 155, 60, 0.15);
	padding: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

	.brand-mark img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}

.login-eyebrow {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #C49B3C;
	margin-bottom: 10px;
}

.login-panel-inner h1 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 26px;
	margin-bottom: 6px;
	color: #1A2630;
}

.login-sub {
	font-size: 13.5px;
	margin-bottom: 30px;
	color: #3E4A56;
	line-height: 1.5;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.field-float {
	position: relative;
}

	.field-float input {
		width: 100%;
		height: 46px;
		border: none;
		border-bottom: 1.5px solid #B0BCC8;
		background: transparent;
		padding: 18px 4px 6px 30px;
		font-size: 14.5px;
		color: #1A2630;
		outline: none;
		border-radius: 0;
		transition: border-color .2s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.field-float::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 2px;
		background: linear-gradient(90deg, #C49B3C, #4A7A94);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
	}

	.field-float input:focus {
		border-bottom-color: transparent;
	}

		.field-float input:focus ~ .field-icon,
		.field-float input:not(:placeholder-shown) ~ .field-icon {
			color: #C49B3C;
		}

	.field-float:has(input:focus)::after {
		transform: scaleX(1);
	}

	.field-float label {
		position: absolute;
		left: 30px;
		top: 14px;
		font-size: 14px;
		color: #6A7A8A;
		pointer-events: none;
		transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.field-float input:focus + label,
	.field-float input:not(:placeholder-shown) + label {
		top: -2px;
		font-size: 10.5px;
		font-weight: 600;
		letter-spacing: .03em;
		color: #C49B3C;
		text-transform: uppercase;
	}

.field-icon {
	position: absolute;
	left: 2px;
	top: 12px;
	color: #6A7A8A;
	pointer-events: none;
	transition: color .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	margin-top: -6px;
}

.check-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #3E4A56;
	cursor: pointer;
}

	.check-pill input {
		accent-color: #C49B3C;
		width: 15px;
		height: 15px;
	}

.link-muted {
	color: #6A7A8A;
	border-bottom: 1px dashed #8A9AA8;
}

	.link-muted:hover {
		color: #C49B3C;
		border-color: #C49B3C;
	}

.login-foot {
	text-align: center;
	margin-top: 22px;
	font-size: 11.5px;
	color: #6A7A8A;
}

/* ---------- Shake Animation ---------- */
@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-12px);
	}

	40% {
		transform: translateX(12px);
	}

	60% {
		transform: translateX(-8px);
	}

	80% {
		transform: translateX(8px);
	}
}

/* ---------- Toast Styles ---------- */
.login-toast {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 300;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	background: #FFFFFF;
	border: 1px solid #D0D8E0;
	border-radius: 14px;
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
	font-size: 13px;
	font-weight: 500;
	color: #1A2630;
	animation: toastIn .4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

	.login-toast.is-leaving {
		animation: toastOut .3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px) scale(.95);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateX(-50%) translateY(20px) scale(.95);
	}
}

.login-toast-success {
	border-left: 4px solid #22C55E;
}

	.login-toast-success .toast-icon {
		background: #22C55E;
	}

.login-toast-error {
	border-left: 4px solid #EF4444;
}

	.login-toast-error .toast-icon {
		background: #EF4444;
	}

.login-toast-warning {
	border-left: 4px solid #F59E0B;
}

	.login-toast-warning .toast-icon {
		background: #F59E0B;
	}

.toast-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

	.toast-icon svg {
		width: 14px;
		height: 14px;
		color: #fff;
	}

.toast-close {
	background: none;
	border: none;
	color: #8A9AA8;
	padding: 4px;
	margin-left: 8px;
	cursor: pointer;
	transition: color .2s;
}

	.toast-close:hover {
		color: #1A2630;
	}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.login-visual {
		display: none;
	}

	.login-stage {
		min-height: 0;
		max-width: 420px;
	}

		.login-stage::before,
		.login-stage::after {
			display: none;
		}

	.login-panel {
		padding: 36px 26px;
	}

	.only-mobile-flex {
		display: flex;
	}

	.login-toast {
		max-width: calc(100% - 40px);
		padding: 12px 18px;
		font-size: 12.5px;
	}
}

@media (max-width: 560px) {
	.login-panel {
		padding: 30px 20px;
	}

	.login-panel-inner h1 {
		font-size: 22px;
	}

	.login-theme-toggle {
		top: 16px;
		right: 16px;
		width: 38px;
		height: 38px;
	}
}
