
/* ========================================
   LOGIN — ORION TECHNOLOGY
   Identidade visual do painel principal
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  font-family: "Montserrat", sans-serif;
  color: #ffffff;

  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(16, 185, 129, 0.16),
      transparent 35%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(16, 185, 129, 0.13),
      transparent 35%
    ),
    #050b0a;

  position: relative;
  overflow-x: hidden;
}

/* Efeitos de iluminação do fundo */

body.login-page::before,
body.login-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.login-page::before {
  width: 420px;
  height: 420px;
  top: -230px;
  left: -220px;

  background: rgba(16, 185, 129, 0.20);
  filter: blur(100px);
}

body.login-page::after {
  width: 460px;
  height: 460px;
  right: -250px;
  bottom: -250px;

  background: rgba(16, 185, 129, 0.18);
  filter: blur(110px);
}

/* Cartão de autenticação */

.login-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 400px;
  padding: 36px 32px;

  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(7, 15, 14, 0.96)
  );

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  overflow: hidden;
}

/* Linha decorativa superior */

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.85),
    transparent
  );
}

/* Logo */

.login-container .logo {
  display: block;

  width: 100px;
  max-height: 80px;
  object-fit: contain;

  margin: 0 auto 28px;

  filter: drop-shadow(
    0 0 14px rgba(16, 185, 129, 0.18)
  );
}

/* Título */

.login-container h1 {
  margin: 0 0 12px;

  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

/* Textos */

.login-container p {
  margin: 0;

  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

/* Rótulo do campo */

.login-container label {
  display: block;

  margin: 26px 0 9px;

  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Campo de autenticação */

.login-container input {
  display: block;
  width: 100%;
  min-height: 48px;

  padding: 12px 14px;

  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-align: center;

  color: #f8fafc;
  background: rgba(2, 6, 23, 0.55);

  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.login-container input:focus {
  background: rgba(2, 6, 23, 0.75);
  border-color: #10b981;

  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.10),
    0 0 18px rgba(16, 185, 129, 0.06);
}

.login-container input::placeholder {
  color: #475569;
  opacity: 1;
  letter-spacing: 3px;
}

/* Botão */

.login-container button {
  display: block;
  width: 100%;
  min-height: 48px;

  margin-top: 18px;
  padding: 13px 16px;

  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;

  color: #ffffff;
  background: linear-gradient(
    135deg,
    #10b981,
    #059669
  );

  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 10px;

  cursor: pointer;

  box-shadow:
    0 6px 20px rgba(16, 185, 129, 0.12);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.login-container button:hover:not(:disabled) {
  transform: translateY(-2px);

  background: linear-gradient(
    135deg,
    #34d399,
    #10b981
  );

  box-shadow:
    0 10px 28px rgba(16, 185, 129, 0.22),
    0 0 18px rgba(16, 185, 129, 0.08);
}

.login-container button:active:not(:disabled) {
  transform: translateY(0);
}

.login-container button:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
}

.login-container button:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

/* Mensagem de retorno */

.login-container #message {
  min-height: 20px;
  margin-top: 14px;
  margin-bottom: 0;

  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

/* Acessibilidade: reduz animações */

@media (prefers-reduced-motion: reduce) {
  .login-container input,
  .login-container button {
    transition: none;
  }
}

/* Responsividade */


/* Correção de scroll desnecessário no mobile */

@media (max-width: 480px) {
  html,
  body.login-page {
    min-height: 100%;
  }

  body.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    align-items: center;
    overflow-x: hidden;
  }

  .login-container {
    margin: 0;
    padding: 24px 22px;
  }

  .login-container .logo {
    max-height: 64px;
    margin-bottom: 18px;
  }

  .login-container label {
    margin-top: 20px;
  }

  .login-container button {
    margin-top: 14px;
  }
}

