/* =============================================
   Luminare CRM — Login Page (GeneratePress)
   Usa variables CSS de GeneratePress:
   --color-contrast      texto principal
   --color-contrast-2    texto secundario
   --color-contrast-3    texto terciario
   --color-base          fondo principal
   --color-base-2        fondo secundario
   --color-base-3        fondo terciario
   --color-accent        color de acento (configurable en tema)
   ============================================= */

.lcrm-login-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
	min-height: 60vh;
	box-sizing: border-box;
}

/* Card — usa colores del tema */
.lcrm-login-card {
	background: var(--lcrm-bg, #fff);
	border: 1px solid var(--color-base-3, #e2e8f0);
	border-radius: 16px;
	padding: 40px 36px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* Brand */
.lcrm-login-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--color-base-3, #e2e8f0);
}

.lcrm-login-cross {
	width: 44px;
	height: 44px;
	background: var(--color-accent, #1d4ed8);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	color: #fff;
}

.lcrm-login-brand-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--lcrm-text, #111827);
	line-height: 1.2;
}

.lcrm-login-brand-sub {
	font-size: 11px;
	color: var(--color-contrast-3, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-top: 3px;
	font-weight: 600;
}

/* Title */
.lcrm-login-title {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--lcrm-text, #111827) !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	border: none !important;
	line-height: 1.3 !important;
}

.lcrm-login-desc {
	font-size: 14px;
	color: var(--lcrm-text, #6b7280);
	margin: 0 0 26px;
	line-height: 1.5;
}

/* Error box */
.lcrm-login-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 11px 14px;
	color: #991b1b;
	font-size: 13px;
	margin-bottom: 18px;
	line-height: 1.5;
}

/* Form groups */
.lcrm-lf-group {
	margin-bottom: 16px;
}

.lcrm-lf-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-contrast-2, #374151);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lcrm-lf-group input[type="text"],
.lcrm-lf-group input[type="password"],
.lcrm-lf-group input[type="email"] {
	width: 100%;
	background: var(--color-base-2, #f9fafb) !important;
	border: 1px solid var(--color-base-3, #d1d5db) !important;
	border-radius: 8px !important;
	color: var(--lcrm-text, #111827) !important;
	font-size: 15px !important;
	padding: 11px 14px !important;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none !important;
	box-shadow: none !important;
	height: auto !important;
}

.lcrm-lf-group input[type="text"]:focus,
.lcrm-lf-group input[type="password"]:focus {
	border-color: var(--lcrm-accent, #2563eb) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lcrm-accent, #2563eb) 15%, transparent) !important;
	background: var(--lcrm-bg, #fff) !important;
}

/* Password toggle */
.lcrm-pw-wrap { position: relative; }

.lcrm-pw-wrap input { padding-right: 46px !important; }

.lcrm-pw-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--color-contrast-3, #9ca3af);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	transition: color 0.2s;
	line-height: 1;
}

.lcrm-pw-toggle:hover { color: var(--color-contrast-2, #4b5563); }

/* Remember + forgot */
.lcrm-lf-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	gap: 12px;
}

.lcrm-lf-remember {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--color-contrast-2, #4b5563);
	cursor: pointer;
	user-select: none;
}

.lcrm-lf-remember input[type="checkbox"] {
	accent-color: var(--lcrm-accent, #2563eb);
	width: 15px;
	height: 15px;
	margin: 0;
}

.lcrm-lf-forgot {
	font-size: 13px;
	color: var(--lcrm-accent, #2563eb) !important;
	text-decoration: none !important;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.lcrm-lf-forgot:hover { opacity: 0.75; }

/* Submit button */
.lcrm-lf-btn {
	width: 100%;
	background: var(--lcrm-accent, #2563eb) !important;
	border: none !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 13px 20px !important;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: auto !important;
	box-shadow: none !important;
}

.lcrm-lf-btn:hover:not(:disabled) {
	opacity: 0.88;
	transform: translateY(-1px);
}

.lcrm-lf-btn:active:not(:disabled) { transform: translateY(0); }

.lcrm-lf-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Spinner */
@keyframes lcrm-spin { to { transform: rotate(360deg); } }
.lcrm-spin { animation: lcrm-spin 0.75s linear infinite; }

/* Back link */
.lcrm-login-back {
	text-align: center;
	margin: 18px 0 0;
}

.lcrm-login-back a {
	font-size: 13px;
	color: var(--color-contrast-3, #6b7280) !important;
	text-decoration: none !important;
	transition: color 0.2s;
}

.lcrm-login-back a:hover {
	color: var(--color-contrast-2, #4b5563) !important;
}

@media (max-width: 480px) {
	.lcrm-login-card { padding: 28px 20px; }
}
