/*!
 * @name PLATAFORMA GRIFOS (Registro INPI BR 51 2016 001520 9)
 * @author Rafael Barros Dutra
 * @version 2.0
 * @copyright RD 2025
 * @date 2025-08-19
 * @date v1.0 - 2022-06-28
 * login.css - Página de estilos css do index.php
 */

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 60px 0;      /* espaço para o footer fixo */
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #050507;

  /* Centralização */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   AVATAR / LOGO
   ========================================================= */

.round2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  display: block;
  margin: 0 auto 1.5rem auto;
}

/* =========================================================
   LOGIN BOX
   ========================================================= */

.login-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 34px;
  width: min(500px, calc(100vw - 32px));
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.10);
}

.login-box h2 {
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #333333;
}

/* =========================================================
   INPUT GROUP (FLOATING LABEL)
   ========================================================= */

.input-group {
  position: relative;
  border: 1px solid #cccccc;
  margin: 0;
  text-align: left;
  background: #ffffff;

  /* ESSENCIAL: garante que o round funcione */
  overflow: hidden;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group.top {
  border-radius: 12px 12px 0 0;
}

.input-group.bottom {
  border-radius: 0 0 12px 12px;
  border-top: none;
}

/* ---------------------------------------------------------
   INPUT
   --------------------------------------------------------- */

.input-group input {
  width: 100%;
  padding: 20px 12px 8px;
  border: none;
  outline: none;

  /* Neutraliza qualquer fundo do input */
  background-color: transparent !important;

  font-size: 1rem;
  color: #333333;

  /* Evita estilos nativos */
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

/* Corrige autofill do Chrome / Edge */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #333333 !important;
  transition: background-color 9999s ease-out 0s;
}

/* ---------------------------------------------------------
   LABEL FLUTUANTE
   --------------------------------------------------------- */

.input-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #888888;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.25s ease all;
}

/* Focus ou input preenchido
   (requer placeholder=" " no HTML) */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.75rem;
  color: #007aff;
}

/* Destaque do grupo em foco */
.input-group:focus-within {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.20);
}

/* =========================================================
   BOTÃO
   ========================================================= */

button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: rgb(86, 89, 98);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
}

button:hover {
  background: rgb(100, 52, 29);
}

button:active {
  transform: scale(0.98);
}

/* =========================================================
   FOOTER FIXO
   ========================================================= */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #6e6e73;
  background: transparent;
  overflow-x: hidden;
}
