/* Login - Estilo moderno */
:root {
	--login-bg-start: #0f0f23;
	--login-bg-end: #1a1a3e;
	--login-card-bg: rgba(255, 255, 255, 0.98);
	--login-primary: #2563eb;
	--login-primary-hover: #1d4ed8;
	--login-text: #1e293b;
	--login-text-muted: #64748b;
	--login-border: #e2e8f0;
	--login-error: #dc2626;
	--login-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	--login-radius: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	position: relative;
}

.login-bg {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, var(--login-bg-start) 0%, var(--login-bg-end) 50%, #16213e 100%);
	z-index: 0;
}

.login-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.25), transparent),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.15), transparent),
		radial-gradient(ellipse 50% 30% at 0% 100%, rgba(139, 92, 246, 0.1), transparent);
	pointer-events: none;
}

.login-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: var(--login-card-bg);
	border-radius: var(--login-radius);
	box-shadow: var(--login-shadow);
	overflow: hidden;
}

.login-card-inner {
	padding: 40px 36px;
}

.login-header {
	text-align: center;
	margin-bottom: 28px;
}

.login-logo {
	max-width: 140px;
	height: auto;
	margin-bottom: 16px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.login-title {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--login-text);
	letter-spacing: -0.02em;
}

.login-subtitle {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--login-text-muted);
	line-height: 1.5;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

.login-form .form-group {
	margin-bottom: 18px;
}

.login-form .form-control {
	width: 100%;
	padding: 14px 16px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--login-text);
	background: #f8fafc;
	border: 1px solid var(--login-border);
	border-radius: 10px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-control::placeholder {
	color: #94a3b8;
}

.login-form .form-control:hover {
	border-color: #cbd5e1;
}

.login-form .form-control:focus {
	outline: none;
	border-color: var(--login-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.error-container {
	min-height: 28px;
	margin-bottom: 12px;
}

.error-container .error,
.error-container .alert-danger {
	margin: 0;
	padding: 10px 14px;
	font-size: 0.875rem;
	color: #b91c1c;
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

.btn-block {
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: var(--login-primary);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, transform 0.05s;
	margin-top: 4px;
}

.btn-block:hover {
	background: var(--login-primary-hover);
}

.btn-block:active {
	transform: scale(0.99);
}

.login-divider {
	display: flex;
	align-items: center;
	margin: 24px 0 20px;
	gap: 16px;
}

.login-divider::before,
.login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--login-border);
}

.login-divider span {
	font-size: 0.8125rem;
	color: var(--login-text-muted);
	font-weight: 500;
}

.google-login-wrap {
	text-align: center;
}

.google-label {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--login-text);
}

.google-login-wrap .g_id_signin {
	display: inline-block;
}

/* Botón "Loguearse con Google" cuando no está configurado */
.btn-google {
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: #4285f4;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.btn-google:hover {
	background: #3367d6;
}

.btn-google.btn-google-disabled {
	background: #94a3b8;
	color: #fff;
	cursor: pointer;
}

.btn-google.btn-google-disabled:hover {
	background: #64748b;
	opacity: 0.95;
}

.btn-google .google-icon::before {
	content: 'G';
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-weight: 700;
	font-size: 1.1rem;
	background: #fff;
	color: #4285f4;
	border-radius: 4px;
}

.btn-google-disabled .google-icon::before {
	color: #64748b;
	background: #e2e8f0;
}

.google-hint-warning {
	color: #b45309 !important;
	font-size: 0.8125rem;
}

.google-hint {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	color: var(--login-text-muted);
	line-height: 1.4;
}

.google-error {
	margin-top: 14px;
	padding: 10px 14px;
	font-size: 0.875rem;
	color: var(--login-error);
	background: #fef2f2;
	border-radius: 8px;
	border: 1px solid #fecaca;
}

.login-footer {
	position: relative;
	z-index: 1;
	margin-top: 28px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 480px) {
	.login-card-inner {
		padding: 28px 24px;
	}
	.login-title {
		font-size: 1.5rem;
	}
}
