body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at top, #09203f, #000);
  color: white;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 360px;
  padding: 35px;
  border-radius: 18px;
  background: rgba(10, 20, 35, 0.92);
  box-shadow: 0 0 35px rgba(0, 180, 255, 0.35);
  border: 1px solid rgba(0, 180, 255, 0.4);
  text-align: center;
}

h1 {
  margin-bottom: 5px;
  color: #00b7ff;
  letter-spacing: 2px;
}

p {
  color: #aaa;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 13px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #1b6b9c;
  background: #07111f;
  color: white;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 13px;
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #007bff, #ff1e56);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.error {
  color: #ff5c7a;
  margin-top: 12px;
  font-size: 14px;
}

.login-logo {
    display: block;
    width: min(320px, 85vw);
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
}

@media (max-width: 480px) {
    .login-logo {
        width: min(260px, 80vw);
        margin-bottom: 16px;
    }
}

/* Ajuste logo Signal-Track */
.card {
  max-width: 380px;
  width: min(380px, 88vw);
  overflow: hidden;
}

.login-logo {
  width: min(280px, 75vw) !important;
  max-width: 280px !important;
  max-height: 150px !important;
  object-fit: contain !important;
  margin: 0 auto 20px auto !important;
}

@media (max-width: 480px) {
  .login-logo {
    width: min(220px, 70vw) !important;
    max-width: 220px !important;
    max-height: 120px !important;
  }
}

/* FIX RESPONSIVE FINAL - LOGIN SIGNAL TRACK */
body {
  min-height: 100svh !important;
  height: auto !important;
  padding: 24px 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.card {
  width: min(380px, 92vw) !important;
  max-width: 380px !important;
  padding: 28px 22px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.login-logo {
  display: block !important;
  width: min(260px, 78vw) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 auto 24px auto !important;
}

@media (max-width: 480px) {
  body {
    padding: 18px 12px !important;
  }

  .card {
    width: min(340px, 92vw) !important;
    padding: 24px 18px !important;
  }

  .login-logo {
    width: min(230px, 76vw) !important;
    margin-bottom: 22px !important;
  }

  input,
  button {
    font-size: 14px !important;
    min-height: 42px !important;
  }
}

/* AJUSTE MOBILE - CENTRADO Y TAMAÑO */
@media (max-width: 480px) {
  body {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 28vh !important;
  }

  .card {
    width: min(380px, 94vw) !important;
    padding: 30px 20px !important;
    transform: scale(1.08);
    transform-origin: top center;
  }

  .login-logo {
    width: min(260px, 78vw) !important;
    margin-bottom: 24px !important;
  }

  input,
  button {
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

/* =========================
   MOBILE OPTIMIZATION V2
   ========================= */
@media (max-width: 480px) {

  body {
    min-height: 100svh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 18vh !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .card {
    width: 90vw !important;
    max-width: none !important;
    padding: 32px 24px !important;
    box-sizing: border-box !important;

    transform: none !important;
  }

  .login-logo {
    display: block !important;
    width: 75% !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 auto 28px auto !important;
  }

  input {
    height: 48px !important;
    font-size: 16px !important;
  }

  button {
    height: 48px !important;
    font-size: 15px !important;
  }
}
