* {
  box-sizing: border-box;
}

:root {
  --cyan: #28e6ff;
  --cyan-soft: rgba(40, 230, 255, .34);
  --text: #f5fbff;
  --muted: rgba(229, 241, 250, .74);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(0, 7, 18, .52), rgba(0, 7, 18, .18) 42%, rgba(0, 7, 18, .50)),
    url("/static/login-fondo.png") center center / cover no-repeat fixed;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 212, 255, .08), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .34));
  pointer-events: none;
}

.card {
  position: relative;
  width: min(390px, calc(100vw - 36px));
  padding: 34px 32px 30px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(21, 34, 48, .62), rgba(5, 12, 21, .58)),
    rgba(5, 16, 29, .54);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 0 42px rgba(0, 212, 255, .12);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, .10), transparent 28%),
    radial-gradient(circle at 80% 92%, rgba(255, 176, 70, .10), transparent 30%);
  pointer-events: none;
}

.login-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(300px, 82%);
  max-height: 130px;
  object-fit: contain;
  margin: 0 auto 30px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 48px;
  margin: 0 0 14px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  outline: none;
  background: rgba(8, 18, 28, .22);
  color: #ffffff;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 0 0 0 rgba(40, 230, 255, 0);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, .82);
}

input:focus {
  border-color: var(--cyan);
  background: rgba(1, 12, 23, .36);
  box-shadow: 0 0 0 3px rgba(40, 230, 255, .15);
}

button {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  box-shadow: 0 16px 34px rgba(0, 120, 255, .28);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px rgba(0, 212, 255, .32);
}

.error {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  background: rgba(255, 31, 92, .26);
  border: 1px solid rgba(255, 107, 143, .46);
}

@media (max-width: 520px) {
  body {
    padding: 18px;
    background-position: 61% center;
  }

  .card {
    padding: 30px 24px 26px;
    border-radius: 22px;
  }

  .login-logo {
    width: min(260px, 82%);
    margin-bottom: 26px;
  }
}
