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

:root {
  --green: #00f04f;
  --bg: #050807;
  --text: #f4f7f5;
  --muted: #89948e;
}

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

body {
  font-family: "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
}

/* LOGIN */
.login-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 15%, rgba(0, 240, 79, 0.08), transparent 30%),
    linear-gradient(135deg, #030504 0%, #080c0a 52%, #030504 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.background-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .11;
  pointer-events: none;
}

.glow-1 {
  background: var(--green);
  top: -220px;
  left: -120px;
}

.glow-2 {
  background: #00bfff;
  bottom: -260px;
  right: -150px;
  opacity: .06;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  margin: auto;
}

.login-card {
  width: 100%;
  padding: 30px 36px 27px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 25, 22, .97), rgba(8, 12, 10, .97));
  box-shadow: 0 25px 65px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
}

.brand {
  text-align: center;
  margin-bottom: 23px;
}

.logo {
  display: block;
  width: min(100%, 285px);
  max-height: 88px;
  object-fit: contain;
  margin: 0 auto 6px;
}

.brand-line {
  width: 42px;
  height: 3px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 240, 79, .5);
}

.brand p {
  color: #78847d;
  font-size: 11px;
  letter-spacing: .3px;
}

.login-header {
  margin-bottom: 19px;
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--green);
  background: rgba(0, 240, 79, .08);
  border: 1px solid rgba(0, 240, 79, .15);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.login-header h1 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 5px;
  letter-spacing: -.4px;
}

.login-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #d7ded9;
  font-size: 11px;
  font-weight: 700;
}

.input-box {
  height: 47px;
  display: flex;
  align-items: center;
  border: 1px solid #27302b;
  border-radius: 9px;
  background: rgba(0, 0, 0, .24);
  transition: .2s ease;
}

.input-box:focus-within {
  border-color: rgba(0, 240, 79, .65);
  box-shadow: 0 0 0 3px rgba(0, 240, 79, .07);
}

.input-icon {
  width: 40px;
  text-align: center;
  color: #5f6b64;
  font-size: 11px;
}

.input-box input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.input-box input::placeholder {
  color: #59645e;
}

.show-password {
  margin-right: 9px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #6f7b74;
  font-size: 10px;
  cursor: pointer;
}

.show-password:hover {
  color: var(--green);
}

.erro {
  min-height: 17px;
  margin: -1px 0 6px;
  color: #ff6868;
  font-size: 11px;
}

.btn-login {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #00ee4e, #00c93f);
  color: #021006;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 25px rgba(0, 240, 79, .13);
  transition: .2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 240, 79, .2);
}

.security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: #59645e;
  font-size: 9px;
}

.security-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 240, 79, .09);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.input-error {
  animation: shake .25s linear;
}

@keyframes shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}

@media (max-height: 700px) {
  .login-page {
    padding: 12px 20px;
  }

  .login-card {
    padding: 22px 30px 20px;
  }

  .brand {
    margin-bottom: 15px;
  }

  .logo {
    max-height: 65px;
  }

  .login-header {
    margin-bottom: 13px;
  }

  .field {
    margin-bottom: 10px;
  }

  .input-box {
    height: 43px;
  }

  .btn-login {
    height: 44px;
  }

  .security {
    margin-top: 11px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 12px;
  }

  .login-card {
    padding: 25px 21px 22px;
    border-radius: 17px;
  }

  .logo {
    width: 260px;
    max-height: 78px;
  }

  .login-header h1 {
    font-size: 24px;
  }
}


/* ACESSIBILIDADE / LEITURA APRIMORADA */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.login-header h1 { font-weight: 750; }
.login-header p { font-size: 13px; }
.field label { font-size: 12px; }
.input-box input { font-size: 14px; }
.btn-login { font-size: 15px; }
.security { font-size: 12px; }
