/* ============================================================
   RESET
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ============================================================
   BODY
============================================================ */
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ============================================================
   AUTO DARK / LIGHT
============================================================ */

@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: white;
  }

  .card {
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
  }

  input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
  }

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

@media (prefers-color-scheme: light) {
  body {
    background: #f4f6fb;
    color: #333;
  }

  .card {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }

  input {
    background: #fcfcfc;
    border: 1px solid #ddd;
  }
}

/* ============================================================
   BACKGROUND BLOBS
============================================================ */

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #200ae7, #09ff00);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: move 20s infinite alternate;
}

.blob1 {
  top: -100px;
  left: -100px;
}

.blob2 {
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

.blob3 {
  top: 50%;
  left: 60%;
  animation-delay: 10s;
}

@keyframes move {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(100px, -80px);
  }
}

/* ============================================================
   CARD
============================================================ */

.card {
  width: 420px;
  padding: 45px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ============================================================
   LOGO
============================================================ */

.logo {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* ============================================================
   MENSAGEM DE ERRO
============================================================ */

.login-erro {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ff5c5c;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   FORM
============================================================ */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

label {
  font-size: 13px;
  opacity: 0.7;
}

input {
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.25s;
}

input:focus {
  outline: none;
  border-color: #8b7cff;
  box-shadow: 0 0 0 2px rgba(139, 124, 255, 0.25);
}

/* ============================================================
   TOGGLE SENHA
============================================================ */

.toggle {
  position: absolute;
  right: 12px;
  top: 36px;
  cursor: pointer;
  opacity: 0.7;
}

.toggle:hover {
  opacity: 1;
}

/* ============================================================
   BOTÃO
============================================================ */

button {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #6cffd3, #6c82ff);
  color: rgb(78, 78, 78);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.8;
}

.footer-links a {
  color: #8b7cff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVO
============================================================ */

@media (max-width: 480px) {
  .card {
    width: 90%;
    padding: 35px;
  }
}