* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --login-card: rgba(5, 20, 48, 0.82);
  --login-card-border: rgba(0, 174, 255, 0.45);
  --login-text: #ffffff;
  --login-muted: #b8c9dd;
  --login-input-bg: rgba(0, 18, 45, 0.65);
  --login-input-border: rgba(0, 170, 255, 0.45);
  --login-primary: #007bff;
  --login-primary-2: #00b7ff;
  --login-shadow: rgba(0, 0, 0, 0.45);
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

.sgp-login-body {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(60, 90, 140, 0.28), transparent 30%),
    radial-gradient(circle at bottom right, rgba(20, 120, 90, 0.20), transparent 28%),
    linear-gradient(135deg, #101820, #1b2633, #2d3f50);
  color: var(--login-text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 22px;
  transition: background 0.4s ease, color 0.4s ease;
}

.sgp-login-body.light {
  background:
    radial-gradient(circle at top left, #d7efff, transparent 30%),
    radial-gradient(circle at bottom right, #dfffdc, transparent 28%),
    linear-gradient(135deg, #f6fbff, #dcefff, #eefbe9);
}

.login-bubbles span {
  animation: bubbleRise var(--tempo) linear infinite;
  background: linear-gradient(135deg, #00b7ff, #49c628);
  border-radius: 50%;
  bottom: -120px;
  filter: blur(1px);
  height: var(--tamanho);
  left: var(--posicao);
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
  width: var(--tamanho);
}

.login-bubbles span:nth-child(2n) {
  background: linear-gradient(135deg, #ff8a00, #00b7ff);
}

@keyframes bubbleRise {
  from {
    opacity: 0.12;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.26;
  }
  to {
    opacity: 0;
    transform: translateY(-120vh) scale(1.5);
  }
}

.sgp-login-card {
  animation: cardIn 0.8s ease forwards;
  backdrop-filter: blur(22px);
  background: var(--login-card);
  border: 1px solid var(--login-card-border);
  border-radius: 34px;
  box-shadow: 0 28px 70px var(--login-shadow), inset 0 0 18px rgba(255, 255, 255, 0.03);
  min-height: 640px;
  overflow: hidden;
  padding: 48px 56px;
  position: relative;
  width: min(980px, 94vw);
}

.login-rights-footer {
  align-items: center;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  font-size: 0.78rem;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  z-index: 3;
}

.login-rights-footer strong {
  color: #fff;
  text-align: center;
}

.login-rights-footer span:last-child {
  text-align: right;
}

.sgp-login-body.light .login-rights-footer {
  color: rgba(16, 24, 32, 0.72);
}

.sgp-login-body.light .login-rights-footer strong {
  color: #101820;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--login-card-border);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(0, 183, 255, 0.22);
  color: var(--login-text);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  position: absolute;
  right: 26px;
  top: 26px;
  transition: 0.25s ease;
  z-index: 3;
}

.theme-btn:hover {
  box-shadow: 0 0 38px rgba(0, 183, 255, 0.42);
  transform: translateY(-2px);
}

.login-brand-panel {
  align-items: center;
  display: flex;
  gap: 20px;
  margin: 36px 0 42px;
  position: relative;
  z-index: 2;
}

.login-card-light {
  border-radius: 34px;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.login-card-light::before,
.login-card-light::after {
  background: rgba(0, 183, 255, 0.08);
  border-radius: 50%;
  content: "";
  filter: blur(30px);
  height: 320px;
  left: -120px;
  position: absolute;
  top: -120px;
  width: 320px;
}

.login-card-light::after {
  background: rgba(0, 123, 255, 0.1);
  bottom: -120px;
  height: 280px;
  left: auto;
  right: -120px;
  top: auto;
  width: 280px;
}

.logo-box {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: 92px;
  justify-content: center;
  width: 92px;
}

.logo-box img {
  animation: floatLogo 3s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
  height: 100%;
  object-fit: contain;
  width: 100%;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.login-brand-panel h1 {
  font-size: 3.2rem;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.login-brand-panel p,
.welcome p,
.footer-secure {
  color: var(--login-muted);
}

.login-brand-panel p {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 10px;
}

.welcome {
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.welcome h2 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.welcome-line {
  background: linear-gradient(90deg, #00b7ff, #007bff);
  border-radius: 999px;
  height: 4px;
  margin-bottom: 18px;
  width: 90px;
}

.login-alert {
  background: rgba(255, 80, 80, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.34);
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 14px;
  position: relative;
  z-index: 2;
}

.login-form {
  position: relative;
  z-index: 2;
}

.field {
  margin-bottom: 24px;
}

.field label {
  align-items: center;
  display: flex;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 12px;
}

.field label span {
  color: var(--login-primary-2);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  background: var(--login-input-bg);
  border: 1px solid var(--login-input-border);
  border-radius: 14px;
  color: var(--login-text);
  font-size: 1.05rem;
  height: 60px;
  outline: none;
  padding: 0 92px 0 20px;
  transition: 0.25s ease;
  width: 100%;
}

.input-wrap input:focus {
  border-color: var(--login-primary-2);
  box-shadow: 0 0 0 4px rgba(0, 183, 255, 0.16), 0 0 26px rgba(0, 183, 255, 0.18);
  transform: translateY(-2px);
}

.remember-user {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: var(--login-muted);
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 10px;
  margin: -4px 0 4px;
  padding: 12px 14px;
}

.remember-user input {
  accent-color: var(--login-primary-2);
  height: 18px;
  width: 18px;
}

.eye {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--login-muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.login-btn {
  align-items: center;
  background: linear-gradient(90deg, #2f6cb3, #4a89c9);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(52, 110, 170, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.35rem;
  font-weight: 800;
  gap: 18px;
  height: 64px;
  justify-content: center;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
  transition: 0.25s ease;
  width: 100%;
}

.login-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
  transition: 0.5s ease;
}

.login-btn:hover {
  box-shadow: 0 22px 44px rgba(0, 166, 255, 0.42);
  transform: translateY(-4px);
}

.login-btn:hover::before {
  transform: translateX(100%);
}

.footer-secure {
  font-size: 1rem;
  margin-top: 44px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.shield {
  background: rgba(0, 123, 255, 0.12);
  border: 1px solid rgba(0, 183, 255, 0.36);
  border-radius: 18px;
  color: var(--login-primary-2);
  display: grid;
  font-weight: 900;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  width: 62px;
}

@media (max-width: 700px) {
  .sgp-login-body {
    flex-direction: column;
    overflow: auto;
    padding: 20px;
  }

  .sgp-login-card {
    min-height: auto;
    padding: 36px 24px;
  }

  .login-rights-footer {
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 18px;
    position: static;
    text-align: center;
    transform: none;
    width: 100%;
  }

  .login-rights-footer span:last-child {
    text-align: center;
  }

  .login-brand-panel {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 38px;
    text-align: center;
  }

  .login-brand-panel h1 {
    font-size: 3.1rem;
  }

  .logo-box {
    height: 140px;
    width: 140px;
  }
}
