/**
 * Auth Pages Styles (Login, Register, Password Reset)
 * Matches Mente Reproductiva brand: warm, minimal, clean.
 */

/* ========================================
   Container & Card
   ======================================== */

.mr-auth-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 3rem 1.5rem;
	min-height: 50vh;
}

.mr-auth-card {
	width: 100%;
	max-width: 480px;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 2.5rem 2rem;
	box-shadow: 0 4px 24px rgba(39, 78, 45, 0.08);
}

.mr-auth-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.75rem;
	font-weight: 600;
	color: #274e2d;
	margin: 0 0 0.5rem;
	text-align: center;
}

.mr-auth-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	color: #47423D;
	text-align: center;
	margin: 0 0 1.5rem;
	line-height: 1.5;
}

/* ========================================
   Alerts / Feedback
   ======================================== */

.mr-auth-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	border-radius: 8px;
	padding: 1rem 1.125rem;
	margin-bottom: 1.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
	position: relative;
}

.mr-auth-alert-content {
	flex: 1;
}

.mr-auth-alert p {
	margin: 0;
}

.mr-auth-alert-icon {
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.mr-auth-alert-close {
	flex-shrink: 0;
	background: none;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.5;
	padding: 0 0 0 0.5rem;
	color: inherit;
	transition: opacity 0.2s ease;
}

.mr-auth-alert-close:hover {
	opacity: 1;
}

.mr-auth-alert-success {
	background-color: rgba(39, 78, 45, 0.1);
	border: 2px solid rgba(39, 78, 45, 0.35);
	color: #274e2d;
	padding: 1.125rem 1.25rem;
}

.mr-auth-alert-success .mr-auth-alert-content p {
	font-weight: 500;
}

.mr-auth-alert-error {
	background-color: rgba(200, 60, 60, 0.08);
	border: 1px solid rgba(200, 60, 60, 0.2);
	color: #8b2020;
}

/* ========================================
   Google OAuth Button
   ======================================== */

.mr-auth-social {
	margin-bottom: 1rem;
}

.mr-auth-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: #ffffff;
	border: 1px solid #dadce0;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	color: #3c4043;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mr-auth-google-btn:hover {
	background-color: #f7f8f8;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: #3c4043;
}

.mr-auth-google-btn svg {
	flex-shrink: 0;
}

/* ========================================
   Divider ("or")
   ======================================== */

.mr-auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.25rem 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	color: #999;
	text-transform: lowercase;
}

.mr-auth-divider::before,
.mr-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: #e5e5e5;
}

/* ========================================
   Form Fields
   ======================================== */

.mr-auth-form {
	margin: 0;
}

.mr-auth-field {
	margin-bottom: 1.25rem;
}

.mr-auth-field label {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: #274e2d;
	margin-bottom: 0.375rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mr-auth-field input[type="text"],
.mr-auth-field input[type="email"],
.mr-auth-field input[type="password"] {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: #f9f8f6;
	border: 1px solid #e0ddd6;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	color: #2B4931;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mr-auth-field input[type="text"]:focus,
.mr-auth-field input[type="email"]:focus,
.mr-auth-field input[type="password"]:focus {
	outline: none;
	border-color: #274e2d;
	box-shadow: 0 0 0 3px rgba(39, 78, 45, 0.1);
	background-color: #ffffff;
}

.mr-auth-field input::placeholder {
	color: #aaa;
}

.mr-auth-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* ========================================
   Password Field
   ======================================== */

.mr-auth-password-wrapper {
	position: relative;
}

.mr-auth-password-wrapper input {
	padding-right: 3rem;
}

.mr-auth-toggle-password {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	color: #999;
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
}

.mr-auth-toggle-password:hover {
	color: #274e2d;
	background: none;
	border: none;
}

.mr-auth-hint {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	color: #999;
	margin: 0.375rem 0 0;
	line-height: 1.4;
}

/* ========================================
   Checkbox
   ======================================== */

.mr-auth-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.825rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #47423D;
	cursor: pointer;
	line-height: 1.4;
}

.mr-auth-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex-shrink: 0;
	accent-color: #274e2d;
}

.mr-auth-checkbox a {
	color: #274e2d;
	text-decoration: underline;
}

/* ========================================
   Submit Button
   ======================================== */

.mr-auth-submit {
	display: block;
	width: 100%;
	padding: 0.875rem 1.5rem;
	background-color: #274e2d;
	color: #ffffff;
	border: 2px solid #274e2d;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	margin-top: 0.5rem;
	text-align: center;
	text-decoration: none;
}

.mr-auth-submit:hover {
	background-color: #1e3d23;
	text-decoration: none;
	color: #ffffff;
}

.mr-auth-submit:active {
	transform: scale(0.99);
}

.mr-auth-logout-btn {
	display: inline-block;
	width: auto;
	margin-top: 1rem;
}

/* ========================================
   Links (forgot password, register, etc.)
   ======================================== */

.mr-auth-links {
	text-align: center;
	margin-top: 1.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.85rem;
	color: #47423D;
}

.mr-auth-links a {
	color: #274e2d;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.mr-auth-links a:hover {
	color: #1e3d23;
}

.mr-auth-separator {
	margin: 0 0.5rem;
	color: #ccc;
}

/* ========================================
   Account Info
   ======================================== */

.mr-auth-account {
	text-align: center;
}

.mr-auth-account-email {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	color: #47423D;
	margin: 0.25rem 0 1rem;
}

/* ========================================
   Honeypot (hidden from real users)
   ======================================== */

.mr-auth-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ========================================
   Resend Verification Email
   ======================================== */

.mr-auth-resend-box {
	background-color: rgba(39, 78, 45, 0.05);
	border: 1px solid rgba(39, 78, 45, 0.12);
	border-radius: 10px;
	padding: 1.25rem 1rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.mr-auth-resend-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.825rem;
	color: #47423D;
	margin: 0 0 0.75rem;
	line-height: 1.5;
}

.mr-auth-resend-form {
	margin: 0;
}

.mr-auth-resend-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	background-color: #ffffff;
	border: 1.5px solid #274e2d;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: #274e2d;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mr-auth-resend-btn:hover {
	background-color: #274e2d;
	color: #ffffff;
}

.mr-auth-resend-btn:hover svg {
	stroke: #ffffff;
}

.mr-auth-resend-btn svg {
	flex-shrink: 0;
	transition: stroke 0.2s ease;
}

/* ========================================
   Content Restriction Gate
   ======================================== */

.mr-auth-gate {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 3rem 1.5rem;
	min-height: 40vh;
}

.mr-auth-gate-inner {
	text-align: center;
	max-width: 480px;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 3rem 2rem;
	box-shadow: 0 4px 24px rgba(39, 78, 45, 0.08);
}

.mr-auth-gate-icon {
	margin-bottom: 1.5rem;
	color: #274e2d;
}

.mr-auth-gate-message {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	color: #47423D;
	line-height: 1.6;
	margin: 0 0 2rem;
}

.mr-auth-gate-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}

.mr-auth-gate-actions .btn {
	min-width: 200px;
	text-align: center;
	font-size: var(--font-size-xs);
}

.mr-auth-gate-register {
	background-color: transparent;
	border-color: #274e2d;
	color: #274e2d;
}

.mr-auth-gate-register:hover {
	background-color: #274e2d;
	color: #ffffff;
}

/* ========================================
   Post-Form CTA (landing page)
   ======================================== */

.mr-post-form-cta {
	background-color: rgba(39, 78, 45, 0.05);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	margin-top: 2rem;
}

.mr-post-form-cta p {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	color: #274e2d;
	margin: 0 0 1rem;
	font-weight: 500;
}

.mr-post-form-cta .btn {
	display: inline-block;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 600px) {
	.mr-auth-card {
		padding: 2rem 1.25rem;
		border-radius: 12px;
	}

	.mr-auth-title {
		font-size: 1.5rem;
	}

	.mr-auth-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mr-auth-gate-inner {
		padding: 2rem 1.25rem;
	}

	.mr-auth-gate-actions {
		width: 100%;
	}

	.mr-auth-gate-actions .btn {
		width: 100%;
		min-width: unset;
	}
}
