:root {
	--lava: #e4442e;
	--ember: #ff6a3d;
	--accent-2: #ff6a3d;
	--obsidian: #0c0d14;
	--panel: #0f1018;
	--panel-2: #0f111c;
	--outline: rgba(255, 255, 255, 0.1);
	--text: #f4f3f2;
	--muted: rgba(255, 255, 255, 0.76);
}

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

body.ember-body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
	width: 100vw;
	display: flex;
	flex-direction: column;
	background: var(--obsidian);
	overflow-x: hidden;
	overflow-y: auto;
}

::selection {
	background: rgba(60, 123, 255, 0.35);
	color: var(--text);
}

a {
	color: var(--ember);
	text-decoration: none;
}

a:hover {
	color: #ff8a61;
}

.ember-shell {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: stretch;
	width: 100%;
	height: 100vh;
}

.realm-wrap,
.realm-frame,
.realm-grid {
	display: contents;
}

.realm-column {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding: 64px 48px;
}

.realm-column.lore {
	border-left: none;
	padding-left: 0;
	gap: 10px;
}

.realm-column.form-side {
	background: var(--panel-2);
	border: none;
	padding: 32px 40px;
	box-shadow: none;
	border-radius: 0;
	gap: 14px;
}

.realm-column.info-side {
	background: #080a12;
	border: none;
	padding: 32px 28px;
	box-shadow: none;
	border-radius: 0;
	align-items: center;
	gap: 12px;
}

.realm-crest {
	text-align: center;
	margin-bottom: 10px;
}

.realm-crest img {
	width: 260px;
	max-width: 100%;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.realm-copy {
	text-align: center;
	margin: 0 0 4px;
}

.realm-copy h1,
.realm-copy h2 {
	margin: 0 0 6px;
	font-size: 22px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text);
}

.realm-copy p {
	margin: 0;
	color: var(--muted);
}

.realm-pills {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.realm-pills span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	font-size: 12px;
}

.realm-pills span::before {
	content: "•";
	color: var(--ember);
}

.realm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.realm-header h1 {
	margin: 0;
	font-size: 22px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
}

.realm-subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.76);
}

.forgot-block {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.forgot-block strong {
	display: block;
	font-size: 13px;
	color: var(--text);
}

.forgot-block small {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

.forgot-block .forgot-sub {
	color: var(--ember);
}

.register-block,
.login-block {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	margin-top: 10px;
}

.register-block strong,
.login-block strong {
	display: block;
	font-size: 13px;
	color: var(--text);
}

.register-block .register-sub,
.login-block .login-sub {
	color: var(--ember);
	font-size: 12px;
}

.register-block:hover,
.login-block:hover {
	color: #ff8a61;
}

.register-icon,
.login-icon {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
}

.forgot-block:hover {
	color: #ff8a61;
}

.forgot-icon {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
}

.actions-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.alert-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 10px;
}

.alert {
	position: relative;
	padding: 14px;
	border-radius: 0;
	border: 1px solid var(--outline);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-size: 14px;
}

.alert-success {
	border-color: rgba(68, 190, 139, 0.35);
	background: rgba(68, 190, 139, 0.14);
}

.alert-danger {
	border-color: rgba(228, 68, 46, 0.45);
	background: rgba(228, 68, 46, 0.14);
}

.alert-has-icon {
	padding-left: 14px;
}

.alert-dismissible {
	padding-right: 40px;
}

.alert .close {
	position: absolute;
	right: 10px;
	top: 10px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.fade {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fade.show {
	opacity: 1;
}

.hide {
	display: none !important;
}

form {
	position: relative;
}

.field-pack {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.field-pack label {
	color: var(--muted);
	letter-spacing: 0.01em;
}

.icon-pack .input-line {
	display: grid;
	grid-template-columns: 50px 1fr;
	align-items: center;
	background: #0b0d17;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon-pack .input-line.toggleable {
	grid-template-columns: 50px 1fr 44px;
}

.icon-pack .input-line:focus-within {
	border-color: rgba(228, 68, 46, 0.85);
	box-shadow: 0 0 0 3px rgba(228, 68, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-pack .input-line input {
	border: none;
	border-radius: 0;
	height: 52px;
	padding-left: 6px;
	background: transparent;
	color: var(--text);
	font-size: 15px;
}

.icon-pack .input-line select {
	border: none;
	border-radius: 0;
	height: 52px;
	padding-left: 6px;
	background: transparent;
	color: var(--text);
	font-size: 15px;
}

.icon-pack .input-line input.error {
	border: 1px solid #e4442e;
	box-shadow: 0 0 0 1px #e4442e inset;
}

.icon-pack .input-line select.error {
	border: 1px solid #e4442e;
	box-shadow: 0 0 0 1px #e4442e inset;
}

.toggle-visibility {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	width: 44px;
	height: 52px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.toggle-visibility i {
	font-size: 16px;
}

.toggle-visibility:hover {
	color: var(--ember);
}

.valid-form label.error,
.valid-form div.error {
	display: none !important;
}
.icon-pack .input-line input:focus {
	outline: none;
}

.field-symbol {
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.85);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	height: 52px;
}

.field-symbol svg {
	width: 20px;
	height: 20px;
}

.field-pack input::placeholder {
	color: rgba(255, 255, 255, 0.42);
}

.ember-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	border: none;
	border-radius: 0;
	padding: 15px 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, var(--lava), var(--ember));
	box-shadow: 0 18px 42px rgba(228, 68, 46, 0.35);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ember-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 22px 48px rgba(228, 68, 46, 0.45);
}

.ember-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.g-recaptcha {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.ember-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 10, 18, 0.7);
	backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	z-index: 9999;
	color: #fff;
}

.ember-loading-overlay.is-active {
	display: flex;
}

.ember-loading-overlay .loader {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	animation: ember-spin 0.9s linear infinite;
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.ember-loading-overlay .loader-text {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86);
}

@keyframes ember-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.ember-shell {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.realm-column {
		padding: 24px 18px;
	}

	.realm-column.info-side {
		display: none;
	}

	.realm-column.lore {
		border-left: none;
		padding-left: 0;
		text-align: center;
	}

	.meta-links {
		flex-direction: column;
		gap: 8px;
	}
}
