/* Auth/Login Page Styles */

:root {
	--primary: #ff6b35;
	--primary-hover: #e55a2b;
	--bg-dark: #0a0a0a;
	--card: #1a1a1a;
	--muted: #cccccc;
	--border: #333;
	--light-border: #555;
	--text: #ffffff;
	--input-width: 180px; /* single input width reduced by 40px */
}

* { box-sizing: border-box; }

body.login-page {
	font-family: 'Exo 2', sans-serif;
	background: url('../images/landing_bg_2.png') center/cover no-repeat fixed;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text);
	margin: 0;
	position: relative;
}

/* 50% black overlay to darken background */
body.login-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	z-index: 0;
}

.login-container {
	background: rgba(15, 15, 15, 0.5); /* 50% transparent modal */
	border: 2px solid var(--primary);
	border-radius: 15px;
	padding: 20px 40px 40px 40px; /* reduce top space by 20px, keep others at 40px */
	min-width: calc((var(--input-width) * 2) + 10px + 80px); /* inputs + gap + padding */
	box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 1;
}

.game-logo { text-align: center; margin-bottom: 0; line-height: 0; }
.logo-img { height: 100px; width: auto; image-rendering: -webkit-optimize-contrast; display: block; margin: 0 auto; }

/* Tagline sits 10px from bottom of logo, reduced further by 30px overall */
.tagline { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: -20px; margin-bottom: 24px; }

.error-message {
	background: rgba(220, 53, 69, 0.5); /* 50% transparent component */
	border: 1px solid #dc3545;
	color: #ffb3b3;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
	text-align: center;
}

.login-form { width: 100%; }

/* Two inputs centered with 10px between */
.form-row {
	display: flex;
	gap: 10px; /* exact 10px between inputs */
	align-items: center;
	justify-content: center;
	width: calc((var(--input-width) * 2) + 10px); /* combined width */
	margin: 0 auto;
}
.form-field { flex: 0 0 var(--input-width); }

/* Inputs fixed width, 50% transparent */
.form-field input {
	width: var(--input-width);
	background: rgba(42, 42, 42, 0.5);
	border: 1px solid var(--light-border);
	color: var(--text);
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 16px;
}

.form-field input::placeholder { color: var(--muted); }
.form-field input:focus { outline: none; border-color: var(--primary); }

/* Enter button same total width as the two inputs + 10px gap, centered */
.form-actions {
	margin-top: 16px;
	width: calc((var(--input-width) * 2) + 10px);
	margin-left: auto;
	margin-right: auto;
}
.login-btn {
	background: var(--primary); /* keep button opaque */
	border: none;
	color: var(--text);
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 100%;
	display: block;
}
.login-btn:hover { background: var(--primary-hover); }

/* Optional debug box style */
.debug-box {
	background: rgba(51, 51, 51, 0.5);
	color: #fff;
	padding: 10px;
	margin: 10px 0;
	border-radius: 5px;
}
