.wram-auth-shell,
.wram-auth-shell * {
	box-sizing: border-box;
}

.wram-auth-shell {
	--wram-auth-ink: #13263a;
	--wram-auth-muted: #667789;
	--wram-auth-border: #dbe5ee;
	align-items: center;
	background:
		radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--wram-auth-primary) 14%, transparent), transparent 34%),
		linear-gradient(145deg, #f7fafc, #edf4f8);
	display: flex;
	font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	justify-content: center;
	min-height: min(760px, 88vh);
	padding: clamp(18px, 5vw, 68px);
	width: 100%;
}

.wram-auth-card {
	background: #fff;
	border: 1px solid rgba(25, 59, 88, 0.1);
	border-radius: 28px;
	box-shadow: 0 28px 80px rgba(35, 67, 93, 0.16);
	display: grid;
	grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
	max-width: 980px;
	overflow: hidden;
	width: 100%;
}

.wram-auth-brand {
	align-items: center;
	background-color: #173e60;
	background:
		linear-gradient(155deg, color-mix(in srgb, var(--wram-auth-primary) 88%, #12293e), #102942 85%);
	color: #fff;
	display: flex;
	flex-direction: column;
	isolation: isolate;
	justify-content: center;
	min-height: 570px;
	overflow: hidden;
	padding: 58px 48px;
	position: relative;
	text-align: center;
}

.wram-auth-brand::after {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 42% 58% 62% 38%;
	content: "";
	height: 360px;
	position: absolute;
	right: -190px;
	top: -170px;
	transform: rotate(25deg);
	width: 360px;
	z-index: -1;
}

.wram-auth-brand-glow {
	background: rgba(255, 255, 255, 0.11);
	border-radius: 50%;
	filter: blur(1px);
	height: 250px;
	left: -140px;
	position: absolute;
	top: 60%;
	width: 250px;
	z-index: -1;
}

.wram-auth-brand img {
	background: rgba(255, 255, 255, 0.98);
	border-radius: 22px;
	box-shadow: 0 18px 45px rgba(7, 24, 38, 0.26);
	height: 112px;
	margin-bottom: 30px;
	object-fit: contain;
	padding: 12px;
	width: 112px;
}

.wram-auth-eyebrow {
	color: rgba(255, 255, 255, 0.76);
	display: block;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

.wram-auth-brand h2 {
	color: #fff;
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 900;
	line-height: 1.45;
	margin: 0;
}

.wram-auth-brand p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.8;
	margin: 18px auto 0;
	max-width: 330px;
}

.wram-auth-form-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 6vw, 68px);
}

.wram-auth-heading {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	margin-bottom: 26px;
}

.wram-auth-lock,
.wram-auth-success {
	align-items: center;
	background: color-mix(in srgb, var(--wram-auth-primary) 12%, #fff);
	border-radius: 14px;
	color: var(--wram-auth-primary);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 900;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.wram-auth-heading h1,
.wram-auth-welcome h1 {
	color: var(--wram-auth-ink);
	font-size: clamp(25px, 3vw, 32px);
	font-weight: 900;
	line-height: 1.35;
	margin: 0 0 7px;
}

.wram-auth-heading p,
.wram-auth-welcome p {
	color: var(--wram-auth-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0;
}

.wram-auth-alert {
	background: #fff1f1;
	border: 1px solid #f3c6c6;
	border-radius: 12px;
	color: #a42626;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.wram-auth-form,
.wram-auth-field {
	margin: 0;
}

.wram-auth-field + .wram-auth-field {
	margin-top: 18px;
}

.wram-auth-field > label {
	color: var(--wram-auth-ink);
	display: block;
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 8px;
}

.wram-auth-input-wrap {
	display: block;
	position: relative;
}

.wram-auth-input-icon {
	align-items: center;
	color: #90a0ae;
	display: flex;
	font-size: 13px;
	font-weight: 900;
	height: 100%;
	justify-content: center;
	position: absolute;
	right: 16px;
	top: 0;
	width: 26px;
}

.wram-auth-shell .wram-auth-field input[type="text"],
.wram-auth-shell .wram-auth-field input[type="password"] {
	appearance: none;
	background: #f9fbfc;
	border: 1px solid var(--wram-auth-border);
	border-radius: 13px;
	box-shadow: none;
	color: var(--wram-auth-ink);
	font: inherit;
	font-size: 16px;
	height: 52px;
	margin: 0;
	outline: none;
	padding: 10px 52px 10px 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	width: 100%;
}

.wram-auth-shell .wram-auth-field input:focus {
	background: #fff;
	border-color: var(--wram-auth-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wram-auth-primary) 14%, transparent);
}

.wram-auth-options {
	align-items: center;
	display: flex;
	font-size: 14px;
	justify-content: space-between;
	margin: 18px 0;
}

.wram-auth-options a {
	color: var(--wram-auth-primary);
	font-weight: 800;
	text-decoration: none;
}

.wram-auth-options a:hover,
.wram-auth-options a:focus {
	text-decoration: underline;
}

.wram-auth-remember {
	align-items: center;
	color: #4b5d6d;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	gap: 8px;
}

.wram-auth-shell .wram-auth-remember input {
	accent-color: var(--wram-auth-primary);
	height: 18px;
	margin: 0;
	width: 18px;
}

.wram-auth-turnstile {
	margin-bottom: 17px;
	overflow: hidden;
	width: 100%;
}

.wram-auth-turnstile .cf-turnstile {
	width: 100%;
}

.wram-auth-submit,
.wram-auth-shell a.wram-auth-submit {
	align-items: center;
	appearance: none;
	background: var(--wram-auth-primary);
	border: 0;
	border-radius: 13px;
	box-shadow: 0 12px 24px color-mix(in srgb, var(--wram-auth-primary) 27%, transparent);
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 16px;
	font-weight: 900;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	text-decoration: none;
	transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.wram-auth-submit span:last-child {
	font-size: 21px;
	margin-right: auto;
}

.wram-auth-submit span:first-child {
	margin-right: auto;
}

.wram-auth-submit:hover,
.wram-auth-submit:focus {
	box-shadow: 0 16px 28px color-mix(in srgb, var(--wram-auth-primary) 35%, transparent);
	color: #fff;
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.wram-auth-security-note {
	align-items: center;
	color: #81909e;
	display: flex;
	font-size: 12px;
	gap: 7px;
	justify-content: center;
	margin: 20px 0 0;
	text-align: center;
}

.wram-auth-security-note span {
	color: #2aae7b;
	font-size: 9px;
}

.wram-auth-honeypot {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	overflow: hidden !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.wram-auth-card--authenticated {
	display: block;
	max-width: 600px;
}

.wram-auth-welcome {
	align-items: center;
	display: flex;
	flex-direction: column;
	padding: clamp(42px, 7vw, 72px);
	text-align: center;
}

.wram-auth-welcome img {
	height: 88px;
	margin-bottom: 22px;
	object-fit: contain;
	width: 160px;
}

.wram-auth-welcome .wram-auth-success {
	background: #e7f8f0;
	color: #16865c;
	margin-bottom: 18px;
}

.wram-auth-welcome .wram-auth-submit {
	margin-top: 26px;
	max-width: 320px;
}

@media (max-width: 760px) {
	.wram-auth-shell {
		min-height: auto;
		padding: 14px;
	}

	.wram-auth-card {
		border-radius: 20px;
		grid-template-columns: 1fr;
	}

	.wram-auth-brand {
		align-items: center;
		min-height: auto;
		padding: 28px 24px;
	}

	.wram-auth-brand img {
		height: 76px;
		margin-bottom: 16px;
		width: 76px;
	}

	.wram-auth-brand h2 {
		font-size: 21px;
	}

	.wram-auth-brand p {
		display: none;
	}

	.wram-auth-form-panel {
		padding: 30px 22px 34px;
	}
}

@media (max-width: 420px) {
	.wram-auth-heading {
		gap: 10px;
	}

	.wram-auth-lock {
		height: 40px;
		width: 40px;
	}

	.wram-auth-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}
