/* Public white chrome: home, login, 404/5xx */
@import url("../fonts/fonts.css");

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.rms-landing {
	margin: 0;
	min-height: 100%;
}

body.rms-landing {
	font-family: "Outfit", system-ui, sans-serif;
	color: #1a1a1a;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(208, 184, 145, 0.18), transparent 55%),
		radial-gradient(900px 500px at 100% 100%, rgba(103, 158, 122, 0.08), transparent 50%),
		#ffffff;
	-webkit-font-smoothing: antialiased;
}

.rms-landing__stage {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 48px 24px;
	text-align: center;
}

.rms-landing__mark {
	font-family: "Syne", "Outfit", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #b39a72;
	opacity: 0;
	animation: rms-landing-in 700ms ease forwards;
}

.rms-landing__title {
	margin: 0;
	max-width: 18ch;
	font-family: "Syne", "Outfit", sans-serif;
	font-size: clamp(2.4rem, 6vw, 4.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #141414;
	opacity: 0;
	transform: translateY(12px);
	animation: rms-landing-in 800ms ease 120ms forwards;
}

.rms-landing__title--compact {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	max-width: 22ch;
}

.rms-landing__code {
	margin: 0;
	font-family: "Syne", "Outfit", sans-serif;
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #141414;
	opacity: 0;
	animation: rms-landing-in 700ms ease forwards;
}

.rms-landing__text {
	margin: 0;
	max-width: 36ch;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #5a5a5a;
	opacity: 0;
	transform: translateY(10px);
	animation: rms-landing-in 800ms ease 180ms forwards;
}

.rms-landing__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 8px;
	opacity: 0;
	transform: translateY(10px);
	animation: rms-landing-in 800ms ease 260ms forwards;
}

.rms-landing__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 44px;
	padding: 0 28px;
	border: 1px solid #1a1a1a;
	border-radius: 999px;
	background: #ffffff;
	color: #1a1a1a;
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rms-landing__btn:hover,
.rms-landing__btn:focus {
	background: #1a1a1a;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.rms-landing__btn:focus-visible {
	outline: 2px solid #b39a72;
	outline-offset: 3px;
}

.rms-landing__btn--ghost {
	border-color: #cfcfcf;
	color: #444;
}

.rms-landing__btn--ghost:hover,
.rms-landing__btn--ghost:focus {
	background: #f4f4f4;
	color: #141414;
	border-color: #1a1a1a;
}

.rms-landing__btn:disabled,
.rms-landing__btn.is-loading {
	opacity: 0.72;
	cursor: wait;
	transform: none;
}

/* —— Auth / login on white —— */

.rms-landing__panel {
	width: 100%;
	max-width: 400px;
	margin-top: 4px;
	text-align: left;
	opacity: 0;
	transform: translateY(12px);
	animation: rms-landing-in 800ms ease 180ms forwards;
}

.rms-landing__panel-title {
	margin: 0 0 20px;
	font-family: "Syne", "Outfit", sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #141414;
	text-align: center;
}

.rms-landing__panel-sub {
	margin: -8px 0 22px;
	font-size: 14px;
	line-height: 1.45;
	color: #5a5a5a;
	text-align: center;
}

.rms-landing__field {
	margin-bottom: 16px;
}

.rms-landing__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.rms-landing__input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d8d8d8;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: #141414;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rms-landing__input::placeholder {
	color: #9a9a9a;
}

.rms-landing__input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(179, 154, 114, 0.25);
}

.rms-landing__hint {
	margin: 0 0 18px;
	font-size: 13px;
	color: #6a6a6a;
}

.rms-landing__hint a {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: none;
}

.rms-landing__hint a:hover {
	text-decoration: underline;
}

.rms-landing__error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(224, 112, 64, 0.08);
	border: 1px solid rgba(224, 112, 64, 0.3);
	color: #c45a2a;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.rms-landing__submit-wrap {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.rms-landing__submit-wrap .rms-landing__btn {
	width: 100%;
	min-width: 0;
}

/* Dev details on 500 */
.rms-landing__details {
	width: 100%;
	max-width: 960px;
	margin-top: 8px;
	padding: 20px 24px;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.85);
	text-align: left;
	font-size: 13px;
	line-height: 1.45;
	color: #222;
	overflow: auto;
	max-height: 50vh;
	opacity: 0;
	animation: rms-landing-in 700ms ease 320ms forwards;
}

.rms-landing__details .red-text {
	color: #c5141c;
}

.rms-landing__details .code_row {
	font-family: Consolas, "Courier New", monospace;
	white-space: pre-wrap;
}

.rms-landing__details .code_row.active {
	background: rgba(199, 20, 28, 0.08);
}

@keyframes rms-landing-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rms-landing__mark,
	.rms-landing__title,
	.rms-landing__code,
	.rms-landing__text,
	.rms-landing__actions,
	.rms-landing__panel,
	.rms-landing__details {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
