/**
 * Naturalie Modern Account — Auth Modal Styles
 *
 * @version 1.0.1
 */

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */

.nma-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.nma-auth-modal--open {
	opacity: 1;
	pointer-events: auto;
}

.nma-auth-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MODAL CONTAINER
   ========================================================================== */

.nma-auth-modal__container {
	position: relative;
	background: var(--nl-surface, #fff);
	border-radius: var(--nl-radius, 16px);
	max-width: 520px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.95);
	transition: transform 0.3s ease;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.nma-auth-modal--open .nma-auth-modal__container {
	transform: scale(1);
}

/* ==========================================================================
   CLOSE BUTTON
   ========================================================================== */

.nma-auth-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--nma-border, #e8e4df);
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--nl-text-muted, #888);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.nma-auth-modal__close:hover {
	background: var(--nl-text-muted, #888);
	color: #fff;
}

/* ==========================================================================
   MODAL CONTENT (adapts existing auth styles)
   ========================================================================== */

.nma-auth-modal__content {
	padding: 0;
}

.nma-auth-modal__content .nma-auth {
	min-height: auto;
	padding: 0;
}

.nma-auth-modal__content .nma-auth-card {
	box-shadow: none;
	border-radius: var(--nl-radius, 16px);
	max-width: 100%;
}

/* ==========================================================================
   RESPONSIVE — Mobile Full-Screen
   ========================================================================== */

@media (max-width: 480px) {
	.nma-auth-modal__container {
		width: 100%;
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
		transform: translateY(100%);
		transition: transform 0.3s ease;
	}

	.nma-auth-modal--open .nma-auth-modal__container {
		transform: translateY(0);
	}

	.nma-auth-modal__close {
		top: 8px;
		right: 8px;
	}
}

/* ==========================================================================
   ACCESSIBILITY — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.nma-auth-modal,
	.nma-auth-modal__container {
		transition: none;
	}

	.nma-auth-modal__close {
		transition: none;
	}
}
