/* ═══════════════════════════════════════════════════════════
   AUTH — matches AuthPage in design/src/app/App.tsx
═══════════════════════════════════════════════════════════ */

.raghada-auth-page {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1rem 3.5rem;
	direction: rtl;
}

.raghada-auth-wrap {
	width: 100%;
	max-width: 24rem;
	margin-inline: auto;
}

.raghada-auth-card {
	padding: 1.5rem;
	border-radius: 28px;
	border: 1px solid var(--raghada-border);
	background: var(--raghada-card);
	box-shadow: 0 20px 64px rgba(91, 53, 31, 0.09);
}

@media (min-width: 640px) {
	.raghada-auth-card {
		padding: 2rem;
	}
}

.raghada-auth-card__head {
	text-align: center;
	margin-bottom: 1.75rem;
}

.raghada-auth-card__title {
	font-family: var(--raghada-font-display);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	color: var(--raghada-dark);
	margin-top: 0.75rem;
	margin-bottom: 0.25rem;
}

.raghada-auth-card__subtitle {
	color: var(--raghada-muted);
	font-size: 0.875rem;
}

.raghada-auth-alert {
	border-radius: 14px;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}
.raghada-auth-alert--error {
	background: rgba(197, 48, 48, 0.08);
	border: 1px solid rgba(197, 48, 48, 0.2);
	color: var(--raghada-error);
}
.raghada-auth-alert--success {
	background: rgba(201, 168, 76, 0.1);
	border: 1px solid rgba(201, 168, 76, 0.25);
	color: var(--raghada-brown-dark);
}

.raghada-auth-method-switch,
.raghada-auth__tabs {
	display: flex;
	border-radius: 1rem;
	padding: 0.25rem;
	margin-bottom: 1.5rem;
	background: var(--raghada-bg);
	border: 1px solid var(--raghada-border);
}

.raghada-auth-method-btn,
.raghada-auth__tab {
	flex: 1;
	padding: 0.625rem 0.75rem;
	border-radius: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--raghada-muted);
	transition: background 0.2s ease, color 0.2s ease;
}
.raghada-auth-method-btn.is-active,
.raghada-auth__tab.is-active {
	background: var(--raghada-gold);
	color: #fff;
}

.raghada-auth-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.raghada-auth-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.raghada-auth-input-wrap {
	position: relative;
}

.raghada-auth-input,
.raghada-auth-input-wrap .raghada-input {
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--raghada-border);
	background: var(--raghada-bg);
	color: var(--raghada-dark);
	padding: 0.8125rem 1rem;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.raghada-auth-input-wrap .raghada-auth-input {
	padding-inline-start: 2.75rem;
}
.raghada-auth-input:focus,
.raghada-auth-input-wrap .raghada-input:focus {
	border-color: var(--raghada-gold);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.raghada-auth-input-icon {
	position: absolute;
	inset-inline-start: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--raghada-muted);
	pointer-events: none;
}

.raghada-auth-input-slot {
	position: absolute;
	inset-inline-end: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	color: var(--raghada-muted);
}

.raghada-auth-phone-wrap {
	display: flex;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid var(--raghada-border);
	background: var(--raghada-bg);
	direction: ltr;
}
.raghada-auth-phone-prefix {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0 0.75rem;
	border-inline-end: 1px solid var(--raghada-border);
	color: var(--raghada-brown-dark);
	font-size: 0.875rem;
	font-weight: 600;
	flex-shrink: 0;
}
.raghada-auth-input--phone {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0.8125rem 0.75rem;
	outline: none;
	font-size: 1rem;
	color: var(--raghada-dark);
}

.raghada-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: 0.875rem;
}
.raghada-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--raghada-muted);
}
.raghada-auth-link {
	color: var(--raghada-gold);
	font-weight: 600;
}
.raghada-auth-link:hover {
	opacity: 0.85;
}

.raghada-auth-submit,
.raghada-auth-btn-champagne,
.raghada-auth-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	border-radius: 9999px;
	padding: 0.75rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--raghada-gold);
	box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
	transition: transform 0.2s ease, opacity 0.2s ease;
	position: relative;
	overflow: hidden;
}
.raghada-auth-submit:hover,
.raghada-auth-btn-champagne:hover {
	transform: translateY(-2px);
}
.raghada-auth-submit:disabled,
.raghada-auth-btn-champagne:disabled {
	opacity: 0.65;
	cursor: wait;
}
.raghada-auth-btn-secondary {
	background: transparent;
	border: 1.5px solid var(--raghada-gold);
	color: var(--raghada-brown);
	box-shadow: none;
}
.raghada-auth-btn-secondary:hover {
	background: rgba(201, 168, 76, 0.12);
}

.raghada-auth-submit__spinner,
.raghada-btn__spinner {
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: raghada-auth-spin 0.7s linear infinite;
}

@keyframes raghada-auth-spin {
	to { transform: rotate(360deg); }
}

.raghada-auth-otp-hint {
	text-align: center;
	color: var(--raghada-muted);
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
}
.raghada-auth-otp-phone {
	color: var(--raghada-dark);
	font-weight: 700;
}

.raghada-auth-otp-box,
.raghada-auth-otp-info {
	text-align: center;
	padding: 1rem;
	border-radius: 1rem;
	background: rgba(201, 168, 76, 0.08);
	border: 1px solid rgba(201, 168, 76, 0.22);
	margin-bottom: 1rem;
}

.raghada-auth-otp-inputs {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	direction: ltr;
	margin-bottom: 1rem;
}
.raghada-auth-otp-digit {
	width: 3rem;
	height: 3rem;
	text-align: center;
	border-radius: 14px;
	border: 1px solid var(--raghada-border);
	background: var(--raghada-bg);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--raghada-dark);
	outline: none;
}
.raghada-auth-otp-digit:focus {
	border-color: var(--raghada-gold);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.raghada-auth-resend {
	text-align: center;
	margin-top: 0.75rem;
}
.raghada-auth-resend-btn,
.raghada-auth-change-btn {
	color: var(--raghada-muted);
	font-size: 0.8125rem;
}
.raghada-auth-resend-btn:not(:disabled) {
	color: var(--raghada-gold);
	font-weight: 600;
}
.raghada-auth-resend-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.raghada-auth-footer {
	text-align: center;
	color: var(--raghada-muted);
	font-size: 0.875rem;
	margin-top: 1.25rem;
}

.raghada-auth-footer-link {
	color: var(--raghada-gold);
	font-weight: 600;
}

.raghada-auth-benefits {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--raghada-border);
}
.raghada-auth-benefits__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: var(--raghada-gold);
	font-size: 0.8125rem;
	margin-bottom: 0.75rem;
}
.raghada-auth-benefits__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}
.raghada-auth-benefits__item {
	font-size: 0.75rem;
	color: var(--raghada-muted);
}

.raghada-auth-pw-strength {
	margin-top: 0.35rem;
}
.raghada-auth-pw-bars {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 0.25rem;
}
.raghada-auth-pw-bar {
	flex: 1;
	height: 0.25rem;
	border-radius: 9999px;
	background: var(--raghada-sand);
}
.raghada-auth-pw-bar.is-weak { background: #e53e3e; }
.raghada-auth-pw-bar.is-fair { background: #dd6b20; }
.raghada-auth-pw-bar.is-good { background: var(--raghada-gold); }
.raghada-auth-pw-bar.is-strong { background: #38a169; }

.raghada-auth-terms {
	text-align: center;
	color: var(--raghada-muted);
	font-size: 0.75rem;
	margin-top: 1rem;
	line-height: 1.7;
}
.raghada-auth-terms a {
	color: var(--raghada-gold);
	font-weight: 600;
}

.raghada-auth-pw-strength__label {
	font-size: 0.75rem;
	color: var(--raghada-muted);
	margin-top: 0.25rem;
}

input[type="password"]::-ms-reveal {
	display: none;
}
