/* =========================
   Login – SensitiveApps (Azul/Blanco)
   ========================= */

#app-header {
  display: none !important;
}

:root {
  --SensitiveApps-blue: #004a9c;
  --SensitiveApps-blue-2: #0a5fc4;
  --bg-1: #f5f8ff;
  --bg-2: #eaf2ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(2, 6, 23, 0.14);
  --ring: rgba(0, 74, 156, 0.18);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      900px 500px at 10% 10%,
      rgba(0, 74, 156, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 90% 20%,
      rgba(10, 95, 196, 0.1),
      transparent 55%
    ),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* =========================
   Logo empresa fuera del card
   ========================= */

.login-companies {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.login-company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  outline: none;
}

.login-company-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 120px;
  object-fit: contain;
  opacity: 0.58;
  filter: grayscale(100%);
  transition:
    filter 0.28s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.login-company-logo:hover .login-company-logo-img,
.login-company-logo:focus-visible .login-company-logo-img {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px) scale(1.05);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.14);
  overflow: hidden;
  position: relative;
}

.login-card::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--SensitiveApps-blue) 0%,
    var(--SensitiveApps-blue-2) 100%
  );
}

.login-body {
  padding: 18px 18px 16px;
}

.login-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 20px;
}

.login-title {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  color: var(--SensitiveApps-blue);
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
}

.login-body .form-label {
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
}

.login-body .form-control {
  height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.login-body .form-control::placeholder {
  color: #9aa0a6;
}

.login-body .input-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-body .input-group-text {
  background: #f3f7ff;
  border: 0;
  border-radius: 12px 0 0 12px;
  color: var(--SensitiveApps-blue);
  padding: 0 12px;
  font-size: 0.95rem;
}

.login-body .input-group .form-control {
  border: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: none;
}

.login-body .input-group .form-control:focus {
  outline: none;
  box-shadow: none;
}

.login-body .input-group:focus-within {
  border-color: var(--SensitiveApps-blue);
  box-shadow: 0 0 0 0.2rem var(--ring);
}

.login-body .form-check-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
}

.login-body .form-check-input {
  border-color: rgba(2, 6, 23, 0.25);
}

.login-body .form-check-input:checked {
  background-color: var(--SensitiveApps-blue);
  border-color: var(--SensitiveApps-blue);
}

.login-body .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem var(--ring);
}

.btn-SensitiveApps {
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(
    180deg,
    var(--SensitiveApps-blue) 0%,
    #003d82 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-SensitiveApps:hover {
  filter: brightness(1.03);
}

.btn-SensitiveApps:active {
  transform: translateY(1px);
}

.btn-SensitiveApps:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

#btn-solicitar-pin {
  color: var(--SensitiveApps-blue);
  text-decoration: none;
  font-weight: 700;
}

#btn-solicitar-pin:hover {
  text-decoration: underline;
}

.login-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 14px;
}

@media (max-width: 576px) {
  .login-wrap {
    padding: 14px;
  }

  .login-companies {
    margin-bottom: 16px;
  }

  .login-company-logo-img {
    max-width: 260px;
    max-height: 96px;
  }

  .login-card {
    border-radius: 16px;
  }

  .login-body {
    padding: 16px 16px 14px;
  }

  .login-title {
    font-size: 1.82rem;
  }
}

@media (max-width: 380px) {
  .login-company-logo-img {
    max-width: 220px;
    max-height: 82px;
  }
}