body.auth-page {
	margin: 0;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	background: #e9ebee;
	color: #1d2129;
	min-height: 100vh;
}

.auth-topbar {
	background: #3b5998;
	color: #fff;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.auth-topbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	font-size: 16px;
	color: #fff;
	text-decoration: none;
}
.auth-topbar-brand img { height: 28px; width: auto; }
.auth-topbar-brand:hover { text-decoration: none; opacity: 0.95; }
.auth-topbar nav a {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	margin-left: 14px;
	font-size: 14px;
}
.auth-topbar nav a:hover { text-decoration: underline; }

.auth-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 20px 16px 48px;
}

.auth-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3b5998;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 16px;
}
.auth-back:hover { text-decoration: underline; }

.auth-card {
	background: #fff;
	border: 1px solid #dddfe2;
	border-radius: 8px;
	padding: 24px 26px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.auth-card h1 {
	margin: 0 0 6px;
	font-size: 22px;
	color: #1d2129;
}
.auth-card .auth-subtitle {
	margin: 0 0 20px;
	color: #65676b;
	font-size: 14px;
}

.auth-flash-error {
	background: #fdecea;
	border: 1px solid #e57373;
	color: #7f1d1d;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 16px;
	font-size: 13px;
}
.auth-flash-info {
	background: #eef6ff;
	border: 1px solid #9ec5f0;
	color: #1a3a5c;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 16px;
	font-size: 13px;
}

.auth-dev-code {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px dashed #c4a35a;
	background: #fff8e6;
	text-align: center;
}
.auth-dev-code-title {
	margin: 0 0 6px;
	font-weight: bold;
	font-size: 13px;
	color: #7a5a00;
}
.auth-dev-code-hint {
	margin: 0 0 10px;
	font-size: 13px;
	color: #5c4a1a;
}
.auth-dev-code-value {
	margin: 0;
	font-size: 32px;
	font-weight: bold;
	letter-spacing: 6px;
	color: #1d2129;
	font-family: "Courier New", Courier, monospace;
}

.auth-field {
	margin-bottom: 14px;
}
.auth-field label {
	display: block;
	font-weight: bold;
	font-size: 13px;
	margin-bottom: 6px;
	color: #444;
}
.auth-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d5;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.auth-field input:focus {
	outline: none;
	border-color: #3b5998;
	box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.2);
}

.auth-btn {
	display: inline-block;
	background: #42b72a;
	color: #fff;
	border: none;
	font-weight: bold;
	font-size: 15px;
	padding: 11px 24px;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.auth-btn:hover { background: #36a420; }
.auth-btn.secondary {
	background: #3b5998;
	color: #fff !important;
	text-decoration: none;
}
.auth-btn.secondary:hover { background: #2d4373; }

.auth-links {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-size: 13px;
	color: #65676b;
}
.auth-links a {
	color: #3b5998;
	font-weight: bold;
	text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

.auth-session-bar {
	background: #f0f2f5;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 18px;
	font-size: 13px;
	color: #444;
}
.auth-session-bar a { color: #3b5998; font-weight: bold; }

.auth-empire-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
	margin: 12px 0 16px;
}
.auth-empire-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.auth-empire-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 2px solid #dddfe2;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
	flex: 1;
	min-width: 0;
}
.auth-empire-item:hover {
	border-color: #3b5998;
	background: #f7f8fa;
	text-decoration: none;
}
.auth-empire-delete {
	display: flex;
	align-items: stretch;
	margin: 0;
	flex-shrink: 0;
}
.auth-btn-delete {
	appearance: none;
	border: 2px solid #e4b4b4;
	background: #fff;
	color: #a33;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.auth-btn-delete:hover {
	background: #fdeaea;
	border-color: #c66;
}
.auth-empire-item img.avatar {
	width: 40px;
	height: 40px;
	border-radius: 4px;
	flex-shrink: 0;
}
.auth-empire-name {
	flex: 1;
	font-weight: bold;
	font-size: 15px;
	color: #1d2129;
}
.auth-empire-level {
	position: relative;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}
.auth-empire-level img { width: 36px; vertical-align: top; }
.auth-empire-level span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	font-size: 11px;
	font-weight: bold;
	color: #1d2129;
}

.auth-wrap-wide {
	max-width: 640px;
}

.auth-toolbar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}
.auth-fandom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	background: #fff url('../img/fandom.png') center / contain no-repeat;
	flex-shrink: 0;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-fandom-btn:hover {
	border-color: #3b5998;
	box-shadow: 0 1px 4px rgba(59, 89, 152, 0.25);
}
.auth-toolbar-note {
	font-size: 12px;
	color: #65676b;
}

.auth-section-label {
	margin: 0 0 10px;
	font-weight: bold;
	font-size: 14px;
	color: #1d2129;
}

.auth-avatar-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
	padding: 4px 2px 8px;
	margin-bottom: 18px;
}
.auth-avatar-grid a {
	display: block;
	border: 2px solid #dddfe2;
	border-radius: 8px;
	padding: 4px;
	background: #fff;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
	text-decoration: none;
}
.auth-avatar-grid a:hover {
	border-color: #3b5998;
	background: #f7f8fa;
	transform: translateY(-1px);
	text-decoration: none;
}
.auth-avatar-grid img {
	width: 70px;
	height: 70px;
	display: block;
	border-radius: 4px;
	object-fit: cover;
}

.auth-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.auth-inline-form {
	margin-top: 10px;
}
.auth-btn-block {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}
.auth-code-input {
	font-size: 22px;
	letter-spacing: 6px;
	text-align: center;
	font-family: Consolas, "Courier New", monospace;
}

#canvas_throbber { display: none !important; }

@media (max-width: 480px) {
	.auth-card { padding: 18px 16px; }
}

/* Selector de idioma (_lang_select.html) */
.social-lang-select { color: #fff; font-weight: 600; font-size: 12px; padding: 4px 6px; border-radius: 4px;
	background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; font-family: inherit; }
.social-lang-select option { color: #222; }
