/**
 * Naturalie Modern Account — Auth Styles (Login, Register, Password Reset)
 *
 * @version 1.0.0
 */

/* ==========================================================================
   AUTH CONTAINER
   ========================================================================== */

.nma-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 200px);
	padding: 40px 20px;
}

.nma-auth-card {
	width: 100%;
	max-width: 520px;
	background: var(--nl-surface, #f5f8f6);
	border-radius: var(--nl-radius, 16px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
	padding: 48px 40px;
}

/* ==========================================================================
   AUTH HEADER
   ========================================================================== */

.nma-auth-header {
	text-align: center;
	margin-bottom: 32px;
}

.nma-auth-logo {
	font-size: 42px;
	font-weight: 800;
	color: var(--nl-primary, #47755e);
	margin-bottom: 12px;
	letter-spacing: -1px;
}

.nma-auth-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--nl-text, #333);
	margin: 0 0 4px;
}

.nma-auth-subtitle {
	font-size: 14px;
	color: var(--nl-text-muted, #888);
	margin: 0;
}

/* ==========================================================================
   AUTH FORM
   ========================================================================== */

.nma-auth-form .nma-form-group {
	margin-bottom: 20px;
}

.nma-auth-form .nma-form-input {
	padding: 10px 14px;
	font-size: 14px;
	border-radius: var(--nl-radius-sm, 8px);
	border: 1.5px solid var(--nma-border, #e8e4df);
	background: var(--nl-surface, #fff);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.nma-auth-form .nma-form-input:focus {
	outline: none;
	border-color: var(--nl-primary, #47755e);
	box-shadow: 0 0 0 3px rgba(71, 117, 94, 0.12);
}

.nma-auth-form .nma-form-label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
	color: var(--nl-text, #333);
}

.nma-auth-form .nma-btn {
	width: 100%;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	margin-top: 8px;
	border-radius: var(--nl-radius-sm, 8px);
	background: var(--nl-primary, #47755e);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(71, 117, 94, 0.25);
	letter-spacing: 0.3px;
	text-align: center;
}

.nma-auth-form .nma-btn:hover {
	background: var(--nl-primary-dark, #3a634d);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(71, 117, 94, 0.35);
}

.nma-auth-form .nma-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(71, 117, 94, 0.25);
}

/* Checkbox */
.nma-auth-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	font-size: 13px;
	color: var(--nl-text-muted, #888);
}

.nma-auth-checkbox input[type="checkbox"] {
	accent-color: var(--nl-primary, #47755e);
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   AUTH FOOTER LINKS
   ========================================================================== */

.nma-auth-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	color: var(--nl-text-muted, #888);
}

.nma-auth-footer a {
	color: var(--nl-primary, #47755e);
	font-weight: 500;
}

.nma-auth-footer p {
	margin: 4px 0;
}

/* Divider */
.nma-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--nl-text-muted, #888);
	font-size: 13px;
}

.nma-auth-divider::before,
.nma-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--nma-border, #e8e4df);
}

/* ==========================================================================
   WC NOTICES
   ========================================================================== */

.nma-auth .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

.nma-auth .woocommerce-message,
.nma-auth .woocommerce-error,
.nma-auth .woocommerce-info {
	padding: 12px 16px;
	border-radius: var(--nl-radius-sm, 8px);
	font-size: 14px;
	margin: 0 0 12px;
	list-style: none;
}

.nma-auth .woocommerce-error {
	background: rgba(211, 47, 47, 0.08);
	color: var(--nma-error, #d32f2f);
	border: 1px solid rgba(211, 47, 47, 0.15);
}

.nma-auth .woocommerce-message {
	background: rgba(46, 125, 50, 0.08);
	color: var(--nma-success, #2e7d32);
	border: 1px solid rgba(46, 125, 50, 0.15);
}

/* ==========================================================================
   AUTH TABS
   ========================================================================== */

.nma-auth-tabs {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--nma-border, #e8e4df);
	padding-bottom: 0;
}

.nma-tab {
	flex: 1;
	padding: 12px 4px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	font-size: 14px;
	font-weight: 500;
	color: var(--nl-text-muted, #888);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.nma-tab:hover {
	color: var(--nl-text, #333);
}

.nma-tab--active {
	color: var(--nl-primary, #47755e);
	border-bottom-color: var(--nl-primary, #47755e);
	font-weight: 600;
}

.nma-tab-label {
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* ==========================================================================
   TAB PANELS
   ========================================================================== */

.nma-tab-panel {
	display: none;
	animation: nmaFadeIn 0.3s ease;
}

.nma-tab-panel--active {
	display: block;
}

@keyframes nmaFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AUTH MESSAGES
   ========================================================================== */

.nma-auth-messages {
	margin-bottom: 16px;
}

.nma-message {
	padding: 12px 16px;
	border-radius: var(--nl-radius-sm, 8px);
	font-size: 14px;
}

.nma-message--success {
	background: rgba(46, 125, 50, 0.08);
	color: var(--nma-success, #2e7d32);
	border: 1px solid rgba(46, 125, 50, 0.15);
}

.nma-message--error {
	background: rgba(211, 47, 47, 0.08);
	color: var(--nma-error, #d32f2f);
	border: 1px solid rgba(211, 47, 47, 0.15);
}

/* ==========================================================================
   FORM ROWS (2-column)
   ========================================================================== */

.nma-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 0;
}

.nma-form-group--half {
	flex: 1;
}

/* ==========================================================================
   FORM HINTS
   ========================================================================== */

.nma-form-hint {
	display: block;
	font-size: 12px;
	color: var(--nl-text-muted, #888);
	margin-top: 4px;
}

/* ==========================================================================
   REQUIRED CHECKBOX
   ========================================================================== */

.nma-auth-checkbox--required {
	margin: 16px 0;
}

.nma-auth-checkbox--required label {
	font-size: 13px;
	line-height: 1.4;
}

.nma-auth-checkbox--required a {
	color: var(--nl-primary, #47755e);
	text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
	.nma-auth-card {
		padding: 28px 20px;
	}

	.nma-auth-logo {
		font-size: 28px;
		margin-bottom: 8px;
	}

	.nma-auth-title {
		font-size: 18px;
	}

	.nma-form-row {
		flex-direction: column;
		gap: 0;
	}

	.nma-auth-tabs {
		gap: 2px;
	}

	.nma-tab {
		font-size: 13px;
		padding: 10px 4px;
	}
}
