.auth-hero {
	width: 100%;
	margin-bottom: 1.75rem;
	justify-content: center;
	align-items: center;
}

.auth-hero__card {
	position: relative;
	display: grid;
	gap: 1rem;
	color: #1f2937;
	width: 100%;
	margin: 0 auto;
}

.auth-hero__glow {
	display: none;
}

.auth-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.auth-hero__content h2 {
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: transparent;
	background: linear-gradient(to right, rgba(67, 56, 202, 1), rgba(124, 58, 237, 1), rgba(192, 38, 211, 1));
	background-clip: text;
	-webkit-background-clip: text;
}

.auth-hero__content p {
	font-size: clamp(0.95rem, 2.7vw, 1.1rem);
	color: #475569;
	line-height: 1.6;
}

.auth-hero__progress {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.auth-hero__progress-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #64748b;
}

.auth-hero__progress-header [data-hero-step-description] {
	font-size: 0.8rem;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 600;
	color: #334155;
}

.auth-hero__progress-bar {
	position: relative;
	height: 0.35rem;
	width: 100%;
	border-radius: 9999px;
	background: rgba(148, 163, 184, 0.25);
	overflow: hidden;
}

.auth-hero__progress-bar [data-hero-step-progress] {
	position: absolute;
	inset: 0;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #6366f1, #8b5cf6);
	box-shadow: 0 1px 6px -2px rgba(99, 102, 241, 0.45);
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-hero__content [data-hero-badge] {
	align-self: flex-start;
	padding: 0.35rem 0.6rem;
	border-radius: 9999px;
	background: rgba(99, 102, 241, 0.12);
	border: 1px solid rgba(79, 70, 229, 0.18);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #4338ca;
}

.auth-hero__content [data-hero-badge][hidden] {
	display: none;
}

@media (min-width: 640px) {
	.auth-hero {
		margin-bottom: 1.5rem;
	}
}

/* ==========================================
   LOGIN PAGE SPECIFIC STYLES
   ========================================== */

/* Font families */
* {
	font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
}

.font-display {
	font-family: "Space Grotesk", system-ui, sans-serif;
}

.font-body {
	font-family: "Inter", system-ui, sans-serif;
}

/* Form transition styles */
.login-form,
.forgot-form,
.code-form,
.reset-form {
	transition: opacity 0.3s ease-in-out;
}

/* Enhanced button interactions */
.btn-primary {
	width: 100%;
	background: linear-gradient(to right, rgba(67, 56, 202, 0.9), rgba(124, 58, 237, 0.9), rgba(192, 38, 211, 0.9));
	color: white;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 8px;
	transition: all 0.2s ease;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border: none;
	cursor: pointer;
	transform: scale(1);
}

.btn-primary:hover {
	background: linear-gradient(to right, rgba(67, 56, 202, 1), rgba(124, 58, 237, 1), rgba(192, 38, 211, 1));
	transform: scale(1.02);
}

.btn-primary:active {
	transform: scale(0.98);
}

.btn-primary:focus {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(99, 102, 241, 0.4),
		0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

/* Input field enhancements */
.form-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #cbd5e1;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	transition: all 0.2s ease;
	color: #0f172a;
	font-family: "Inter", system-ui, sans-serif;
}

.form-input::placeholder {
	color: #64748b;
}

.form-input:focus {
	outline: none;
	border-color: rgba(99, 102, 241, 0.7);
	box-shadow:
		0 0 0 3px rgba(99, 102, 241, 0.1),
		0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Error message styling */
.error-message {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	animation: slideDown 0.3s ease-out;
}

.error-message p {
	color: #dc2626;
	font-size: 0.875rem;
	font-family: "Inter", system-ui, sans-serif;
}

/* Success message styling */
.success-message {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	animation: slideDown 0.3s ease-out;
}

.success-message p {
	color: #16a34a;
	font-size: 0.875rem;
	font-family: "Inter", system-ui, sans-serif;
}

/* Animations */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Carousel specific styles */
.carousel-slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	transition: opacity 1s ease;
}

.carousel-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.carousel-indicator:hover {
	background-color: white;
}

/* Modal container responsive improvements */
.modal-container {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Enhanced focus states for accessibility */
.focus-visible:focus {
	outline: none;
	box-shadow:
		0 0 0 2px #6366f1,
		0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Loading state for buttons */
.loading {
	position: relative;
	pointer-events: none;
}

.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid transparent;
	border-top: 2px solid #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Dark mode support (if needed later)
@media (prefers-color-scheme: dark) {
  .modal-container {
    background-color: rgba(15, 23, 42, 0.95);
  }

  .form-input {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: #475569;
    color: #f1f5f9;
  }

  .form-input::placeholder {
    color: #94a3b8;
  }
} */

/* Print styles */
@media print {
	.left-section {
		display: none !important;
	}

	.modal-container {
		background: white;
		box-shadow: none;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.btn-primary {
		background: black;
		color: white;
		border: 2px solid white;
	}

	.form-input {
		border: 2px solid black;
	}
}

/* ==========================================
   REGISTER FORM SPECIFIC STYLES
   ========================================== */

/* Register form transitions */
.register-form {
	transition: opacity 0.3s ease-in-out;
}

/* Checkbox styling */
.form-checkbox {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: rgba(99, 102, 241, 0.8);
	cursor: pointer;
	border-radius: 4px;
}

.form-checkbox:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Select styling */
select.form-input {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 1.25em 1.25em;
	padding-right: 2.5rem;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

select.form-input:focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234f46e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Success message styling */
.success-message {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	animation: slideDown 0.3s ease-out;
}

.success-message p {
	color: #166534;
	font-size: 0.875rem;
	font-weight: 500;
}

/* Responsive phone input */
@media (max-width: 640px) {
	.modal-container {
		padding: 1.25rem 0.75rem;
		border-radius: 24px;
		background: linear-gradient(180deg, rgba(248, 250, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
		box-shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.55);
		border: 1px solid rgba(255, 255, 255, 0.12);
	}

	.right-section {
		padding: 1.5rem 1.25rem 1rem;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.forms-content {
		padding-inline: 0;
	}

	.footer-container {
		background: transparent;
		border-radius: 0;
		padding: 1rem 0 0;
		box-shadow: none;
	}

	.login-footer {
		border-top-color: transparent;
		padding-top: 0;
	}

	.form-container {
		gap: 1.5rem;
		padding-inline: 0.25rem;
	}

	.phone-fields {
		grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
		align-items: end;
		gap: 1rem;
	}

	.phone-fields .form-group {
		margin-bottom: 0;
	}

	.phone-fields .form-group label {
		margin-bottom: 0.35rem;
	}

	.form-group label,
	.form-group label span {
		font-size: 0.95rem;
	}

	.form-input {
		font-size: 0.95rem;
		padding: 0.75rem 0.875rem;
	}

	.form-input::placeholder {
		font-size: 0.875rem;
	}

	.btn-primary {
		font-size: 0.95rem;
		padding: 0.75rem 1rem;
	}
}

/* Grid responsive improvements for registration form */
@media (max-width: 640px) {
	.grid.grid-cols-1.sm\\:grid-cols-2 {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

	.carousel-slide,
	.login-form,
	.forgot-form,
	.code-form,
	.register-form,
	.btn-primary {
		transition: none !important;
		animation: none !important;
	}
}