* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top,
      rgba(28, 45, 95, 0.22),
      rgba(4, 7, 32, 0.92) 62%
    ),
    linear-gradient(
      180deg,
      #040615,
      #010212
    );

  color: #fff;
}

body.light {
  background:
    radial-gradient(
      circle at top,
      rgba(80, 110, 200, 0.35),
      rgba(20, 30, 80, 0.85) 60%
    ),
    linear-gradient(
      180deg,
      #0b1230,
      #060a1c
    );
}

.login-container {
  width: 380px;
  padding: 35px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: flutuar 5s ease-in-out infinite;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #6ea8ff;
}

body:not(.light) .login-container h2 {
  text-shadow: 0 0 10px rgba(110,168,255,0.35);
}

body.light .login-container h2 {
  text-shadow: 0 0 18px rgba(110,168,255,0.65);
}

.login-container img {
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 60px;
  width: 160px;
  height: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.login-container button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.4s ease, filter 0.4s ease, color 0.3s ease;
}

body.light .login-container button {
  background: linear-gradient(
    135deg,
    #6e8bff,
    #3253f9
  );

  color: #ffffff;

  box-shadow:
    0 0 12px rgba(155,182,255,0.55),
    0 6px 20px rgba(60, 90, 255, 0.35);

  font-weight: lighter;
  letter-spacing: 2px;
}

body.light .login-container button:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}


body:not(.light) .login-container button {
  background: linear-gradient(
    135deg,
    #3b4fd8,
    #1f2f8f
  );

  color: rgba(255, 255, 255, 0.6);

  box-shadow:
    0 6px 20px rgba(40, 60, 160, 0.35),
    inset 0 0 0 rgba(255,255,255,0);

  font-weight: bolder;
}

body:not(.light) .login-container button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group i{
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.input-group i.active,
.input-group i:hover {
    color: #9bb6ff;
    text-shadow: 0 0 10px rgba(155,182,255,0.6);
}

.toggle-password {
    pointer-events: all;
}

/* Label começa DENTRO */
.input-group label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
  padding: 0 5px;
}

/* Quando foca OU tem valor */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -16px;
  font-size: 13px;
  color: #9bb6ff;
  text-shadow: 0 0 10px rgba(155,182,255,0.6);
}

.login-container input {
  width: 100%;
  height: 44px;
  padding: 0px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 44px;
}

.login-container input:focus {
  outline: none;
  border-color: #6ea8ff;
  box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.25);
}

.remember-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 60px 0 15px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(200,210,255,0.75);
}

.remember label {
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s;
  margin-bottom: 3px;
}

.remember:hover label {
  color: #9bb6ff;
  text-shadow: 0 0 10px rgba(155,182,255,0.6);
}

.remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #6ea8ff;
  cursor: pointer;
  margin-left: 5px;
}

.remember-wrapper a{
  font-size: 13px;
  color: rgba(200,210,255,0.75);
  text-decoration: none;
  transition: 0.3s;
}

.remember-wrapper a:hover {
  color: #9bb6ff;
  text-shadow: 0 0 10px rgba(155,182,255,0.6);
}

.ajuda-container {
  position: absolute;
  width: 100%;
  top: 100%;
  margin-top: 6px;
}

.ajuda {
    display: block;
    font-size: 12px;
    color: rgba(200, 210, 255, 0.75);
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
    padding: 0 2px;
}

.input-group:focus-within .ajuda {
  opacity: 1;
}


.theme-toggle {
  font-size: 17px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle .slider {
  --background: #28096b;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 30px;
}

.theme-toggle .slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  left: 10%;
  bottom: 15%;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: inset 8px -4px 0px 0px #fff000;
  background: var(--background);
  transition: .5s;
}

.theme-toggle input:checked + .slider {
  background-color: #522ba7;
}

.theme-toggle input:checked + .slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #fff000;
}




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





/* ----------------------------------------- */
/* RESPONSIVIDADE PROFISSIONAL — UD SYSTEM   */
/* ----------------------------------------- */

/* 📱 UDMobile */
@media (max-width: 600px) {
    .login-container {
        max-width: 95%;
        padding: 10px;
    }

    header {
        padding: 10px;
    }

    form {
        padding: 18px;
    }

    label, input, textarea, select {
        font-size: 14px;
    }

    button {
        font-size: 15px;
        padding: 11px;
    }
}

/* 📟 UDTablet */
@media (min-width: 600px) and (max-width: 1024px) {
    .login-container {
        max-width: 700px;
    }
}

/* 🖥️ Monitor Normal */
@media (min-width: 1024px) and (max-width: 1400px) {
    .login-container {
        max-width: 900px;
    }
}

/* 🖥️ Ultrawide / Curvo */
@media (min-width: 1400px) {
    .login-container {
        max-width: 1100px;
    }
}
