/* ============================================================
   Resolvemark AUX CSS — pages-aux scope
   Team / Contact / 404 / Login / Cookie Banner
   Prefix: rm-   |   Indent: tab   |   Build: web0519
   ============================================================ */

/* ── Subpage hero (small — no full-bleed) ── */
.rm-subpage-hero {
	background: var(--rm-bg-alt);
	padding: 100px 0 60px;
	border-bottom: 1px solid var(--rm-border);
}

.rm-subpage-hero__inner {
	max-width: var(--rm-container);
	margin: 0 auto;
	padding: 0 24px;
}

.rm-subpage-hero__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rm-accent);
	margin-bottom: 14px;
}

.rm-subpage-hero__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 14px;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.rm-subpage-hero__lede {
	font-size: 17px;
	color: var(--rm-text-muted);
	max-width: 560px;
	line-height: 1.6;
	margin: 0;
}

/* ── Section label utility ── */
.rm-section-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rm-accent);
	margin-bottom: 12px;
}

/* ============================================================
   TEAM — rm-team (A-grid, 3-col)
   ============================================================ */

.rm-team {
	padding: 80px 0;
	background: #ffffff;
}

.rm-team__inner {
	max-width: var(--rm-container);
	margin: 0 auto;
	padding: 0 24px;
}

.rm-team__heading {
	text-align: center;
	margin-bottom: 56px;
}

.rm-team__heading h2 {
	font-size: clamp(26px, 3.5vw, 40px);
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 12px;
}

.rm-team__heading p {
	font-size: 16px;
	color: var(--rm-text-muted);
	max-width: 540px;
	margin: 0 auto;
}

.rm-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.rm-team__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.rm-team__photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	margin-bottom: 20px;
	border: 3px solid var(--rm-bg-surface);
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.rm-team__name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 6px;
}

.rm-team__title {
	font-size: 14px;
	color: var(--rm-text-muted);
	margin: 0;
}

@media (max-width: 768px) {
	.rm-team__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.rm-team__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
   CONTACT — rm-contact (A-split: form + info)
   ============================================================ */

.rm-contact {
	padding: 80px 0;
	background: #ffffff;
}

.rm-contact__inner {
	max-width: var(--rm-container);
	margin: 0 auto;
	padding: 0 24px;
}

.rm-contact__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

.rm-contact__info h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 24px;
}

.rm-contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
	font-size: 15px;
	color: var(--rm-text-body);
}

.rm-contact__info-item i {
	color: var(--rm-accent);
	font-size: 16px;
	margin-top: 2px;
	flex-shrink: 0;
	width: 20px;
}

.rm-contact__info-item a {
	color: var(--rm-text-body);
	text-decoration: none;
}

.rm-contact__info-item a:hover {
	color: var(--rm-accent);
}

/* Form */
.rm-contact__form h2 {
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 28px;
}

.rm-form__group {
	margin-bottom: 18px;
}

.rm-form__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--rm-text-head);
	margin-bottom: 6px;
}

.rm-form__input,
.rm-form__select,
.rm-form__textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--rm-text-head);
	background: #ffffff;
	border: 1.5px solid rgba(15,23,42,0.15);
	border-radius: 8px;
	box-sizing: border-box;
	font-family: var(--font-sans);
	transition: border-color 0.2s;
	-webkit-appearance: none;
}

.rm-form__input:focus,
.rm-form__select:focus,
.rm-form__textarea:focus {
	outline: 2px solid var(--rm-accent);
	outline-offset: 2px;
	border-color: var(--rm-accent);
}

.rm-form__input::placeholder,
.rm-form__textarea::placeholder {
	color: #94a3b8;
}

.rm-form__textarea {
	resize: vertical;
	min-height: 120px;
}

.rm-form__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

.rm-form__submit {
	display: inline-block;
	padding: 13px 32px;
	background: var(--rm-accent);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--font-sans);
	transition: background 0.2s;
}

.rm-form__submit:hover {
	background: #a83509;
}

.rm-form__success {
	padding: 14px 18px;
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid rgba(21,128,61,0.2);
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 18px;
	display: none;
}

.rm-form__success.visible {
	display: block;
}

@media (max-width: 900px) {
	.rm-contact__split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* ============================================================
   404 PAGE — rm-404
   ============================================================ */

.rm-404 {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 24px;
}

.rm-404__inner {
	max-width: 560px;
	text-align: center;
}

.rm-404__code {
	font-family: var(--font-display);
	font-size: 120px;
	font-weight: 700;
	line-height: 1;
	color: var(--rm-accent);
	opacity: 0.18;
	margin-bottom: 0;
	letter-spacing: -0.04em;
}

.rm-404__title {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 700;
	color: var(--rm-text-head);
	margin-bottom: 14px;
}

.rm-404__body {
	font-size: 16px;
	color: var(--rm-text-muted);
	margin-bottom: 32px;
	line-height: 1.6;
}

/* ============================================================
   COOKIE BANNER — rm-cookie (A-generic, hidden-attribute, center-modal)
   ============================================================ */

.rm-cookie {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	width: calc(100% - 48px);
	max-width: 520px;
}

/* hidden attribute hides it by default */
.rm-cookie[hidden] { display: none !important; }

.rm-cookie__inner {
	background: #ffffff;
	border: 1px solid rgba(15,23,42,0.1);
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.12);
	display: flex;
	gap: 16px;
	align-items: center;
}

.rm-cookie__text {
	font-size: 14px;
	color: var(--rm-text-body);
	line-height: 1.55;
	flex: 1;
	margin: 0;
}

.rm-cookie__text a {
	color: var(--rm-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rm-cookie__buttons {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.rm-cookie__btn {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 7px;
	border: 1.5px solid rgba(15,23,42,0.2);
	background: transparent;
	color: var(--rm-text-body);
	cursor: pointer;
	font-family: var(--font-sans);
	transition: all 0.2s;
	white-space: nowrap;
}

.rm-cookie__btn:hover {
	border-color: var(--rm-accent);
	color: var(--rm-accent);
}

.rm-cookie__btn--primary {
	background: var(--rm-accent);
	color: #ffffff;
	border-color: var(--rm-accent);
}

.rm-cookie__btn--primary:hover {
	background: #a83509;
	color: #ffffff;
}

@media (max-width: 600px) {
	.rm-cookie__inner {
		flex-direction: column;
		align-items: stretch;
	}
	.rm-cookie__buttons {
		justify-content: flex-end;
	}
}

/* ============================================================
   FOOTER contact items
   ============================================================ */

.rm-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: rgba(245,240,235,0.7);
	margin-bottom: 10px;
}

.rm-footer__contact-item i {
	margin-top: 3px;
	flex-shrink: 0;
	color: var(--rm-accent);
}

.rm-footer__contact-item a {
	color: rgba(245,240,235,0.7);
}

.rm-footer__contact-item a:hover {
	color: #ffffff;
}

/* ============================================================
   LOGIN — Pattern A (subfolder, D-stacked-banner)
   bg_mode: B-css-gradient
   ============================================================ */

.auth-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background:
		radial-gradient(ellipse at 20% 80%, rgba(194,65,12,0.14) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 15%, rgba(194,65,12,0.08) 0%, transparent 50%),
		#1a0a04;
}

/* D-stacked-banner: top banner + form card below */
.auth-banner {
	width: 100%;
	text-align: center;
	padding: 48px 24px 32px;
}

.auth-banner__logo {
	display: inline-block;
	margin-bottom: 20px;
}

.auth-banner__logo img {
	height: 36px;
	width: auto;
}

.auth-banner__title {
	font-family: 'Sora', 'Satoshi', system-ui, sans-serif;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	color: #f5f0eb;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.auth-banner__sub {
	font-size: 15px;
	color: rgba(245,240,235,0.65);
	margin: 0;
}

.auth-form-card {
	width: 100%;
	max-width: 480px;
	padding: 0 24px 48px;
}

.auth-card {
	background: #ffffff;
	border-radius: 14px;
	padding: 40px 36px;
	box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.auth-card h2 {
	font-family: 'Sora', 'Satoshi', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 6px;
	text-align: center;
}

.auth-card__sub {
	font-size: 14px;
	color: #64748b;
	text-align: center;
	margin-bottom: 24px;
}

.auth-back-bar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	color: var(--rm-accent);
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
}

.auth-back-bar:hover {
	text-decoration: underline;
}

.auth-form {
	/* form container */
}

.auth-form__group {
	margin-bottom: 16px;
}

.auth-form__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #1e293b;
	margin-bottom: 6px;
}

.auth-form__input,
.auth-form__select {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	color: #1e293b;
	background: #ffffff;
	border: 1.5px solid rgba(0,0,0,0.12);
	border-radius: 8px;
	box-sizing: border-box;
	font-family: 'Satoshi', system-ui, sans-serif;
	transition: border-color 0.2s;
	-webkit-appearance: none;
}

.auth-form__input:focus,
.auth-form__select:focus {
	outline: 2px solid #c2410c;
	outline-offset: 2px;
	border-color: #c2410c;
}

.auth-form__input::placeholder {
	color: #94a3b8;
}

.auth-form__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.auth-form__checkbox-line {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #475569;
}

.auth-form__checkbox-line input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #c2410c;
	cursor: pointer;
}

.auth-form__row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.auth-form__row-2 { grid-template-columns: 1fr; }
}

.auth-form__submit {
	width: 100%;
	padding: 13px;
	background: #c2410c;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	font-family: 'Satoshi', system-ui, sans-serif;
	transition: background 0.2s;
}

.auth-form__submit:hover {
	background: #a83509;
}

.auth-links {
	text-align: center;
	margin-top: 18px;
	font-size: 14px;
	color: #475569;
}

.auth-links a {
	color: #c2410c;
	text-decoration: none;
	font-weight: 500;
}

.auth-links a:hover {
	text-decoration: underline;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: #94a3b8;
	font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(0,0,0,0.1);
}

.auth-message {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
	display: none;
}

.auth-message.visible {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.auth-message.success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid rgba(21,128,61,0.2);
}

.auth-message.error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid rgba(185,28,28,0.2);
}

.auth-terms {
	font-size: 12px;
	color: #64748b;
	text-align: center;
	margin-top: 16px;
	line-height: 1.5;
}

.auth-terms a {
	color: #c2410c;
	text-decoration: none;
}

.auth-terms a:hover {
	text-decoration: underline;
}

/* Login mini-footer */
.auth-mini-footer {
	padding: 16px 24px;
	text-align: center;
	font-size: 12px;
	color: rgba(245,240,235,0.4);
}

.auth-mini-footer a {
	color: rgba(245,240,235,0.5);
	text-decoration: none;
	margin: 0 8px;
}

.auth-mini-footer a:hover {
	color: rgba(245,240,235,0.8);
}

/* Dashboard layout */
.auth-dashboard {
	min-height: 100vh;
	background: #0f172a;
	display: flex;
}

.auth-sidebar {
	width: 240px;
	background: #1e293b;
	padding: 32px 0;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.auth-sidebar__logo {
	padding: 0 24px 32px;
	display: block;
}

.auth-sidebar__logo img {
	height: 28px;
}

.auth-sidebar__nav {
	list-style: none;
	padding: 0;
	margin: 0;
	flex: 1;
}

.auth-sidebar__nav li {
	padding: 0;
}

.auth-sidebar__nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(245,240,235,0.65);
	text-decoration: none;
	transition: all 0.2s;
}

.auth-sidebar__nav a:hover,
.auth-sidebar__nav a.active {
	background: rgba(255,255,255,0.06);
	color: #f5f0eb;
}

.auth-sidebar__nav a i {
	width: 16px;
	text-align: center;
	font-size: 14px;
}

.auth-sidebar__logout {
	padding: 16px 24px 0;
}

.auth-sidebar__logout a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(245,240,235,0.45);
	text-decoration: none;
}

.auth-sidebar__logout a:hover {
	color: rgba(245,240,235,0.8);
}

.auth-main {
	flex: 1;
	padding: 40px 48px;
	overflow-y: auto;
}

.auth-main__header {
	margin-bottom: 40px;
}

.auth-main__header h1 {
	font-family: 'Sora', 'Satoshi', system-ui, sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #f1f5f9;
	margin-bottom: 6px;
}

.auth-main__header p {
	font-size: 14px;
	color: rgba(241,245,249,0.55);
	margin: 0;
}

.auth-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.auth-stat-card {
	background: #1e293b;
	border-radius: 10px;
	padding: 24px 20px;
	border: 1px solid rgba(255,255,255,0.06);
}

.auth-stat-card__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(241,245,249,0.45);
	margin-bottom: 12px;
}

.auth-stat-card__value {
	font-family: 'Sora', 'Satoshi', system-ui, sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #f1f5f9;
	line-height: 1;
	margin-bottom: 4px;
}

.auth-stat-card__sub {
	font-size: 12px;
	color: rgba(241,245,249,0.4);
}

.auth-activity {
	background: #1e293b;
	border-radius: 10px;
	padding: 28px;
	border: 1px solid rgba(255,255,255,0.06);
}

.auth-activity h3 {
	font-family: 'Sora', 'Satoshi', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #f1f5f9;
	margin-bottom: 20px;
}

.auth-activity__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.auth-activity__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	font-size: 14px;
	color: rgba(241,245,249,0.7);
}

.auth-activity__list li:last-child {
	border-bottom: none;
}

.auth-activity__list li i {
	color: #c2410c;
	font-size: 13px;
	flex-shrink: 0;
}

.auth-activity__badge {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(194,65,12,0.18);
	color: #f87171;
}

.auth-activity__badge.resolved {
	background: rgba(21,128,61,0.18);
	color: #86efac;
}

@media (max-width: 1024px) {
	.auth-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.auth-dashboard { flex-direction: column; }
	.auth-sidebar { width: 100%; padding: 16px 0; }
	.auth-sidebar__nav { display: flex; overflow-x: auto; }
	.auth-sidebar__nav a { white-space: nowrap; }
	.auth-main { padding: 24px 16px; }
	.auth-stats-grid { grid-template-columns: 1fr 1fr; }
	.auth-form-card { max-width: 100%; }
	.auth-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
	.auth-stats-grid { grid-template-columns: 1fr; }
}

/* ===== auth-verify (login/verify.html) ===== */
.auth-verify-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(21,128,61,0.1);
	border: 2px solid rgba(21,128,61,0.25);
	margin: 0 auto 20px;
	font-size: 28px;
	color: #15803d;
}

.auth-verify-title {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	text-align: center;
	margin-bottom: 10px;
}

.auth-verify-body {
	font-size: 15px;
	color: #475569;
	text-align: center;
	line-height: 1.6;
	margin-bottom: 28px;
}

.auth-verify-cta {
	display: block;
	width: 100%;
	padding: 13px;
	background: #c2410c;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
}

.auth-verify-cta:hover {
	background: #a83509;
	color: #ffffff;
}
