.breezan-auth {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}
.breezan-auth__card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: var(--breezan-radius-lg);
	border: 1px solid var(--breezan-border);
	padding: 2.5rem 2rem;
}
.breezan-auth__header { text-align: center; margin-bottom: 2rem; }
.breezan-auth__header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.breezan-auth__header p { color: var(--breezan-text-light); font-size: 0.875rem; }

/* ── Alert (shared error / success) ── */
/* لا تُخفِ العنصر بالـ CSS — الإظهار/الإخفاء عبر style من JS أو من القالب (وإلا يبقى التنبيه display:none بعد إزالة الـ inline). */
.breezan-auth--checkout-otp .breezan-checkout-otp-phone {
	display: block;
	text-align: center;
	margin-top: 0.5rem;
	font-size: 1.125rem;
	color: var(--breezan-text, #111827);
}

.breezan-auth__error,
.breezan-auth__alert.breezan-auth__error {
	background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
	border-radius: var(--breezan-radius-sm); padding: 0.75rem 1rem;
	font-size: 0.8125rem; margin-bottom: 1rem; text-align: center;
}
.breezan-auth__success,
.breezan-auth__alert.breezan-auth__success {
	background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669;
	border-radius: var(--breezan-radius-sm); padding: 0.75rem 1rem;
	font-size: 0.8125rem; margin-bottom: 1rem; text-align: center;
}

/* ── Form ── */
.breezan-auth__form { display: flex; flex-direction: column; gap: 1rem; }
.breezan-auth__field label {
	display: block; font-size: 0.8125rem;
	color: var(--breezan-text-light); margin-bottom: 0.375rem;
}
.breezan-auth__field-error {
	font-size: 0.75rem;
	color: #dc2626;
	margin-top: 0.35rem;
}
.breezan-input--error {
	border-color: #fca5a5 !important;
	background: #fef2f2;
}
.breezan-auth__pw-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}
.breezan-auth__pw-wrap .breezan-input {
	padding-inline-end: 2.75rem;
}
.breezan-pw-toggle {
	position: absolute;
	inset-inline-end: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--breezan-text-muted);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.breezan-pw-toggle:hover { color: var(--breezan-primary); }
.breezan-auth__footer {
	text-align: center; margin-top: 1.5rem;
	font-size: 0.8125rem; color: var(--breezan-text-light);
}

/* ── Tabs ── */
.breezan-auth__tabs {
	display: flex;
	gap: 0;
	margin-bottom: 1.5rem;
	border: 1px solid var(--breezan-border);
	border-radius: var(--breezan-radius-sm);
	overflow: hidden;
}
.breezan-auth__tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 0.5rem;
	font-size: 0.8125rem;
	color: var(--breezan-text-light);
	background: var(--breezan-bg-soft);
	border: none;
	cursor: pointer;
	transition: all var(--breezan-transition);
	font-family: inherit;
}
.breezan-auth__tab:not(:last-child) {
	border-left: 1px solid var(--breezan-border);
}
.breezan-auth__tab.is-active {
	background: #fff;
	color: var(--breezan-primary);
	font-weight: 600;
}
.breezan-auth__tab svg {
	flex-shrink: 0;
}

/* ── Phone input with prefix (single visual row; LTR inside RTL forms) ── */
.breezan-auth__phone-wrap {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-height: calc(0.75rem * 2 + 1.25em);
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	overflow: hidden;
	transition: border-color var(--breezan-transition);
	background: #fff;
	/* Keeps +966 visually to the left of digits regardless of page direction */
	direction: ltr;
}
.breezan-auth__phone-wrap:focus-within {
	border-color: var(--breezan-primary);
}
.breezan-auth__phone-prefix {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 0.65rem 0.75rem 0.85rem;
	font-size: 0.875rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: #4b5563;
	background: #f9fafb;
	border-inline-end: 1px solid #e5e7eb;
	user-select: none;
	white-space: nowrap;
	line-height: 1.25;
}
.breezan-auth__field .breezan-input--phone {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	/* Match standalone .breezan-input padding from components.css */
	padding: 0.75rem 1rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.25;
	background: #fff;
}
.breezan-auth__field .breezan-input--phone:focus {
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none;
}

/* ── OTP ── */
.breezan-auth__otp-hint {
	font-size: 0.75rem;
	color: var(--breezan-text-muted);
	margin: 0 0 0.75rem;
	text-align: center;
	line-height: 1.5;
}

.breezan-auth__otp-header {
	text-align: center;
	margin-bottom: 1.5rem;
}
.breezan-auth__otp-header p {
	font-size: 0.875rem;
	color: var(--breezan-text-light);
	margin-bottom: 0.25rem;
}
.breezan-auth__otp-header strong {
	font-size: 1.125rem;
	color: var(--breezan-text);
	display: block;
	margin-bottom: 0.5rem;
	letter-spacing: 0.05em;
}
.breezan-auth__change-phone {
	background: none;
	border: none;
	color: var(--breezan-primary);
	font-size: 0.8125rem;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
	padding: 0;
}
.breezan-auth__otp-inputs {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 1.5rem;
	direction: ltr;
}
.breezan-otp-digit {
	width: 3.25rem;
	height: 3.25rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 600;
	border: 2px solid #e5e7eb;
	border-radius: var(--breezan-radius-sm);
	background: #fff;
	transition: border-color var(--breezan-transition);
	font-family: inherit;
}
.breezan-otp-digit:focus {
	border-color: var(--breezan-primary);
	outline: none;
}

/* ── Resend OTP ── */
.breezan-auth__resend {
	text-align: center;
	margin-top: 1rem;
}
.breezan-auth__resend-btn {
	background: none;
	border: none;
	color: var(--breezan-text-light);
	font-size: 0.8125rem;
	cursor: pointer;
	font-family: inherit;
	padding: 0.25rem 0.5rem;
	transition: color var(--breezan-transition);
}
.breezan-auth__resend-btn:hover:not(:disabled) {
	color: var(--breezan-primary);
}
.breezan-auth__resend-btn:disabled {
	cursor: default;
	opacity: 0.6;
}

/* ── Button spinner ── */
.breezan-btn__spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: breezan-spin 0.6s linear infinite;
	display: inline-block;
}
@keyframes breezan-spin {
	to { transform: rotate(360deg); }
}
