/**
 * Login Contable — estilo panel2, densidad correcta
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --fx-bg: #09090b;
  --fx-surface: #121214;
  --fx-border: #2e2e32;
  --fx-text: #f4f4f5;
  --fx-muted: #a1a1aa;
  --fx-muted-icon: #71717a;
  --fx-accent: #3b6fd9;
  --fx-accent-dim: rgba(59, 111, 217, 0.14);
  --fx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 15px;
}

body.flextv-login {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  background: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--fx-font);
  -webkit-font-smoothing: antialiased;
}

.login-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.login-hero {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(59, 111, 217, 0.28), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(59, 111, 217, 0.1), transparent 50%),
    linear-gradient(165deg, #000 0%, #121214 55%, #0f141f 100%);
}

.login-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 111, 217, 0.55), transparent);
}

.login-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.login-hero__brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fx-text);
}

.login-hero__brand span { color: var(--fx-accent); }

.login-hero__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fx-text);
  white-space: nowrap;
}

.login-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--fx-surface);
  overflow: auto;
}

.login-main__inner {
  width: 100%;
  max-width: 380px;
  margin: 0;
}

.login-alert {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: var(--fx-text);
  font-size: 13px;
  line-height: 1.4;
}

.login-alert--ok {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}

.login-alert--warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.login-field { margin-bottom: 12px; }

.login-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.login-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field__control > .glyphicon {
  position: absolute;
  left: 12px;
  z-index: 2;
  color: var(--fx-muted-icon);
  font-size: 13px;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.login-field__control input {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px 0 38px;
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: 10px;
  color: var(--fx-text);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.login-field__control input:focus {
  outline: none;
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px var(--fx-accent-dim);
}

.login-actions { margin-top: 16px; }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--fx-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(59, 111, 217, 0.28);
}

.login-btn:hover { filter: brightness(1.06); }

.login-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--fx-muted-icon);
}

.login-foot a {
  color: var(--fx-accent);
  text-decoration: none;
  font-weight: 600;
}

.login-foot a:hover {
  color: #6b93e8;
  text-decoration: underline;
}

@media (min-width: 900px) {
  .login-page { flex-direction: row; }

  .login-hero {
    flex: 0 0 46%;
    width: 46%;
    height: 100%;
    padding: 40px 48px;
    justify-content: center;
    align-items: center;
  }

  .login-hero::after {
    inset: 0 0 0 auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(59, 111, 217, 0.45), transparent);
  }

  .login-hero__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 420px;
  }

  .login-hero__brand { font-size: 32px; }
  .login-hero__title { font-size: 24px; }

  .login-main {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    padding: 40px 48px;
  }

  .login-main__inner { max-width: 360px; }
}
