/* Login Module — login.css
   Standalone page */

/* ============================================================
   [1] BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   [2] FULLSCREEN BACKGROUND
   ============================================================ */
.login-wrap {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: url('/skins/default/images/login.jpg') no-repeat center center;
	background-size: cover;
	font-family: 'Poppins', sans-serif;
}
.login-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at 50% 40%,
		rgba(211, 47, 47, 0.08) 0%,
		rgba(8, 4, 28, 0.4) 100%
	);
}

/* ============================================================
   [3] GLASSMORPHISM CARD
   ============================================================ */
.login-card {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 24px;
	padding: 48px 40px;
	background: rgba(10, 8, 28, 0.55);
	backdrop-filter: blur(28px) saturate(150%);
	-webkit-backdrop-filter: blur(28px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 24px;
	box-shadow:
		0 32px 64px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.login-card::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 24px;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(211, 47, 47, 0.35) 0%,
		rgba(100, 120, 255, 0.08) 40%,
		rgba(0, 200, 255, 0.2) 100%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* ============================================================
   [4] LOGO
   ============================================================ */
.login-logo {
	text-align: center;
	margin-bottom: 36px;
}
.login-logo svg,
.login-logo img {
	height: 72px;
	width: auto;
	filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.45));
}

/* ============================================================
   [5] TITLES
   ============================================================ */
.login-title {
	font-size: 1.375rem;
	font-weight: 600;
	color: #fff;
	text-align: center;
	margin: 0 0 6px;
}
.login-subtitle {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	margin: 0 0 28px;
	line-height: 1.6;
}
.login-subtitle strong {
	color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   [6] FORM INPUTS
   ============================================================ */
.login-field {
	position: relative;
	margin-bottom: 14px;
}
.login-field .field-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: #757575;
	pointer-events: none;
	transition: color 0.25s ease;
}
.login-field input {
	display: block;
	width: 100%;
	padding: 13px 16px 13px 46px;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	color: #212121;
	font-size: 0.875rem;
	font-family: 'Poppins', sans-serif;
	outline: none;
	transition: all 0.25s ease;
}
.login-field input::placeholder {
	color: #9e9e9e;
}
.login-field input:focus {
	border-color: rgba(211, 47, 47, 0.6);
	box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}
.login-field:focus-within .field-icon {
	color: #d32f2f;
}
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 30px #fff inset !important;
	-webkit-text-fill-color: #212121 !important;
	border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   [7] PRIMARY BUTTON
   ============================================================ */
.login-btn {
	display: block;
	width: 100%;
	padding: 13px;
	margin-top: 20px;
	background: #d32f2f;
	border: none;
	border-radius: 12px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}
.login-btn:hover {
	background: #e53935;
	box-shadow: 0 8px 28px rgba(211, 47, 47, 0.4);
	transform: translateY(-1px);
}
.login-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 12px rgba(211, 47, 47, 0.3);
}
.login-btn:disabled,
.login-btn.cooldown {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* ============================================================
   [8] SECONDARY BUTTON
   ============================================================ */
.login-btn-secondary {
	display: block;
	width: 100%;
	padding: 13px;
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
}
.login-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* ============================================================
   [9] ACTION ROW
   ============================================================ */
.login-actions-row {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}
.login-actions-row > * {
	flex: 1;
	margin-top: 0 !important;
}

/* ============================================================
   [10] LINK
   ============================================================ */
.login-link {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.35);
	text-decoration: none;
	transition: color 0.2s ease;
}
.login-link:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   [11] ALERTS
   ============================================================ */
.login-alert {
	padding: 11px 16px;
	border-radius: 10px;
	font-size: 0.8125rem;
	margin-bottom: 16px;
	line-height: 1.5;
}
.login-alert-danger {
	background: rgba(211, 47, 47, 0.12);
	border: 1px solid rgba(211, 47, 47, 0.25);
	color: #ff7070;
}
.login-alert-success {
	background: rgba(52, 168, 83, 0.12);
	border: 1px solid rgba(52, 168, 83, 0.25);
	color: #69db7c;
}

/* ============================================================
   [12] FORM TEXT
   ============================================================ */
.login-form-text {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 8px 0 0;
	text-align: center;
}

/* ============================================================
   [13] STATE TRANSITIONS
   ============================================================ */
.login-state.fade-in {
	animation: loginFadeIn 0.35s ease;
}
@keyframes loginFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   [14] HIDE UTILITY
   ============================================================ */
.d-none { display: none !important; }

/* ============================================================
   [15] RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
	.login-card {
		padding: 36px 24px;
		margin: 16px;
		border-radius: 20px;
	}
	.login-title { font-size: 1.25rem; }
}
