/* --- BRAND IDENTITY CORES --- */
:root {
	--bg-main: #0B0907;           /* Deep Bronze Black */
	--bg-card: #17130E;           /* Dark Chocolate Container Surface */
	--bg-input: #241D15;          /* Inner Field Neutral */
	--logo-gold-bright: #FFC000;  /* Pure Yellow-Gold */
	--logo-gold-dark: #9E7000;    /* Muted Dark Olive Gold */
	--logo-bronze: #3D1B04;       /* Deep Core Brand Brown */
	--text-main: #F4F2F0;         /* High-Contrast Cream White */
	--text-muted: #A39E98;        /* Soft Secondary Text */
	--border-color: #2F261D;      /* Subtle Earthy Dividers */
	--max-width: 480px;           /* Strict focus block dimensions */
}

/* --- STYLING RESET --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-main);
	color: var(--text-main);
	font-family: 'Inter', -apple-system, sans-serif;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

/* --- CONTAINER MATRIX CONTAINER --- */
.auth-card-container {
	width: 100%;
	max-width: var(--max-width);
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 40px 32px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* --- BRAND LOGO AND HEADER SECTION --- */
.auth-header {
	text-align: center;
	margin-bottom: 28px;
}

.logo-img {
	height: 48px;
	margin-bottom: 12px;
	object-fit: contain;
}

.fallback-logo-text {
	font-family: 'Oswald', sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--logo-gold-bright);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.auth-subtitle {
	font-size: 0.85rem;
	color: var(--text-muted);
	letter-spacing: 0.01em;
}

/* --- PANEL VISIBILITY TOGGLE CONTROLS --- */
.auth-panel {
	display: none; /* Hide sections by default */
	flex-direction: column;
}

.auth-panel.active-panel {
	display: flex; /* Display selected interactive layout layer */
}

/* --- INTERACTIVE FORM PIPELINES --- */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-main);
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrapper svg {
	position: absolute;
	left: 14px;
	fill: var(--text-muted);
	width: 18px;
	height: 18px;
	pointer-events: none;
	transition: fill 0.2s ease;
}

.form-control-input {
	width: 100%;
	background-color: var(--bg-input);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 14px 14px 14px 44px; /* Space reserved for vector iconography */
	color: var(--text-main);
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.form-control-input:focus {
	outline: none;
	border-color: var(--logo-gold-bright);
	background-color: #2b2219;
	box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.15);
}

.form-control-input:focus + svg {
	fill: var(--logo-gold-bright);
}

/* --- ACCESSORY CONTROLS ROW --- */
.form-accessory-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
}

.remember-me-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	cursor: pointer;
	user-select: none;
}

.remember-me-label input[type="checkbox"] {
	accent-color: var(--logo-gold-bright);
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.switch-panel-link {
	color: var(--logo-gold-bright);
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease;
}

.switch-panel-link:hover {
	color: #fff;
	text-decoration: underline;
}

/* --- CORE ACTION SUBMIT BUTTONS --- */
.submit-auth-btn {
	width: 100%;
	background: linear-gradient(180deg, var(--logo-gold-bright) 0%, var(--logo-gold-dark) 100%);
	border: none;
	color: #000000;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	padding: 14px;
	border-radius: 8px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(255, 192, 0, 0.2);
	margin-top: 6px;
}

.submit-auth-btn:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 192, 0, 0.3);
}

/* --- SEPARATOR DIVIDER DISPLAYS --- */
.divider-line-box {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 24px 0;
	color: var(--text-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.divider-line-box::before, .divider-line-box::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--border-color);
}

.divider-line-box:not(:empty)::before { margin-right: .75em; }
.divider-line-box:not(:empty)::after { margin-left: .75em; }

/* --- THIRD PARTY OAUTH CONTROLLER --- */
.social-oauth-btn {
	width: 100%;
	background-color: var(--bg-main);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.social-oauth-btn:hover {
	background-color: var(--bg-input);
	border-color: var(--text-muted);
}

/* --- FOOTER REDIRECT BOX --- */
.auth-footer-cta {
	text-align: center;
	margin-top: 28px;
	font-size: 0.9rem;
	color: var(--text-muted);
}