/* ====== Fondo tipo blur/gradiente ====== */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(1000px 500px at 15% 25%, rgba(120, 210, 255, 0.30), transparent 60%),
    radial-gradient(900px 450px at 85% 35%, rgba(140, 240, 200, 0.22), transparent 55%),
    radial-gradient(900px 500px at 50% 85%, rgba(120, 150, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #f6fbff 0%, #eef6fb 45%, #f7fbff 100%);
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Brillitos opcionales */
.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
}
.login-page::before {
  left: -60px;
  bottom: 80px;
  background: #8ae6ff;
}
.login-page::after {
  right: -60px;
  top: 90px;
  background: #9dffcf;
}

/* ====== Card ====== */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 35, 55, 0.15);
  padding: 28px 26px;
}

/* ====== Marca / Logo ====== */
.brand-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 48px;
}

.brand-mark .bar {
  position: absolute;
  bottom: 0;
  width: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2e6bff 0%, #17c4a7 100%);
  box-shadow: 0 10px 25px rgba(30, 115, 255, 0.25);
}

.brand-mark .b1 { left: 6px;  height: 18px; }
.brand-mark .b2 { left: 22px; height: 28px; }
.brand-mark .b3 { left: 38px; height: 40px; }

.brand-mark .arrow {
  position: absolute;
  right: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-right: 4px solid #28d6a8;
  border-top: 4px solid #28d6a8;
  transform: rotate(35deg);
  border-radius: 2px;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: rgba(30, 50, 70, 0.55);
}

.login-title {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #0f2436;
}

/* ====== Inputs con íconos ====== */
.form-label {
  font-weight: 600;
  color: rgba(20, 40, 55, 0.75);
  margin-bottom: 6px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(40, 70, 90, 0.45);
  pointer-events: none;
  font-size: 1.1rem;
}

.form-control {
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(20, 40, 55, 0.15);
  background: rgba(255, 255, 255, 0.85);
  padding-right: 44px;
  box-shadow: 0 10px 22px rgba(15, 35, 55, 0.06);
}

.form-control:focus {
  border-color: rgba(46, 107, 255, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(46, 107, 255, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

/* ====== Botón degradado ====== */
.btn-login {
  height: 52px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(90deg, #2e6bff 0%, #17c4a7 100%);
  box-shadow: 0 16px 28px rgba(46, 107, 255, 0.22);
  transition: transform 0.08s ease, filter 0.2s ease;
}

.btn-login:hover {
  filter: brightness(1.03);
}

.btn-login:active {
  transform: translateY(1px);
}

/* ====== Links inferiores ====== */
.link-soft {
  color: rgba(25, 55, 75, 0.65);
  text-decoration: none;
}

.link-soft:hover {
  color: rgba(25, 55, 75, 0.95);
  text-decoration: underline;
}

/* Mensajes de error */
.invalid-feedback {
  font-weight: 600;
}
