/**
 * MM Restricted Pages – Front-end Styles
 *
 * Intentionally minimal so it inherits from the
 * active theme / Oxygen global styles. Override
 * any of these in your theme or Oxygen stylesheet.
 */

/* ── Layout ─────────────────────────────── */
.mmrp-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 2rem 0;
	font-family: inherit;
	line-height: 1.5;
}

.mmrp-wrap *,
.mmrp-wrap *::before,
.mmrp-wrap *::after {
	box-sizing: border-box;
}

/* ── Notices ─────────────────────────────── */
.mmrp-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.mmrp-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.mmrp-notice--success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mmrp-notice--info {
	background: #eff6ff;
	color: #234252;
	border: 1px solid #bfdbfe;
}

/* ── Form Fields ─────────────────────────── */
.mmrp-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mmrp-field label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
	color: inherit;
}

.mmrp-field input[type="text"],
.mmrp-field input[type="email"],
.mmrp-field input[type="password"] {
	display: block;
	width: 100%;
	padding: 0.65rem 0.85rem;
	font-size: 0.95rem;
	font-family: inherit;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #111;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mmrp-field input:focus {
	outline: none;
	border-color: #2180b7;
	box-shadow: 0 0 0 3px rgba(33, 128, 183, 0.15);
}

.mmrp-field input:disabled {
	background: #f3f4f6;
	color: #6b7280;
	cursor: not-allowed;
}

.mmrp-field-note {
	font-size: 0.8rem;
	color: #6b7280;
	margin: 0.3rem 0 0;
}

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

@media (max-width: 480px) {
	.mmrp-field-row {
		grid-template-columns: 1fr;
	}
}

/* ── Checkbox + Row ──────────────────────── */
.mmrp-field--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mmrp-checkbox {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.mmrp-checkbox input {
	margin: 0;
}

.mmrp-link {
	color: #2180b7;
	font-weight: 600;
    font-size: 0.875rem;
	text-decoration: none;
}

.mmrp-link:hover {
	text-decoration: underline;
}

/* ── Buttons ─────────────────────────────── */
.mmrp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 5px 20px;
	font-size: var(--body);
	font-family: inherit;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #234252;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: .2s;
}

.mmrp-btn:hover {
	background: #142b38;
	color: #fff;
}

.mmrp-btn--outline {
	display: inline-flex;
	background: transparent;
	color: #234252;
	border: 2px solid #aeb9be;
}

.mmrp-btn--outline:hover {
	background: transparent;
	color: #000000;
	border-color: #234252;
}

/* ── Account Sections ────────────────────── */
.mmrp-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e7eb;
}

.mmrp-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.mmrp-section-title {
	margin: 0 0 1rem;
}

.mmrp-section--logout {
	text-align: center;
}

/* ── Logged-in state on login page ───────── */
.mmrp-logged-in {
	text-align: center;
}

.mmrp-logged-in .mmrp-btn {
	margin: 0.35rem;
}
