/*
  stylelogin.css - Tema moderno 2025 para a página de Login
  Baseado no style.css principal, adaptado para o layout de login.
  Foco em acessibilidade e responsividade.
*/

/* ------------------------------
   Fonts & CSS Variables
------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0b1220;
  --bg-2: #0e1628;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);
  --card: rgba(15, 23, 42, 0.6);
  --border: rgba(148, 163, 184, 0.24);
  --text: #e5e7eb;
  --muted: #aab1bf;
  --brand: #6366f1; /* indigo-500 */
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --ring: rgba(99, 102, 241, 0.45);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* ------------------------------
   Reset & Base
------------------------------ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(99,102,241,0.15), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(14,165,233,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centraliza o conteúdo verticalmente */
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

/* Focus visível acessível */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Scrollbar (webkit) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 9999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.4); }

/* ------------------------------
   Header (para a página de login)
------------------------------ */
header {
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

header img {
  display: block;
  height: 60px; /* Ajustado para o login */
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(99,102,241,0.25));
}

/* ------------------------------
   Main Content & Form (.team-box)
------------------------------ */
main#content {
  width: 100%;
  max-width: 400px; /* Largura máxima para o formulário de login */
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1; /* Permite que o main ocupe o espaço disponível */
}

.team-box {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%; /* Garante que ocupe a largura máxima definida pelo main#content */
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
  animation: cardIn .4s ease both;
}

.team-box h3 {
  margin: 4px 0 20px 0; /* Mais espaço abaixo do título */
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center; /* Centraliza o título do formulário */
}

.team-box p {
  margin: 6px 0;
  font-size: 0.96rem;
  color: var(--text);
}

.team-box p strong {
  color: #fff;
  font-weight: 700;
}

/* Mensagem de erro */
.team-box p[style*="color: red"] {
  color: var(--danger) !important;
  font-size: 0.95em;
  text-align: center;
  margin-bottom: 15px;
}

/* ------------------------------
   Forms & Inputs (.input-config)
------------------------------ */
label {
  color: var(--text);
  font-weight: 500;
  margin-top: 15px; /* Espaçamento acima dos labels */
  margin-bottom: 5px;
  display: block;
}

label:first-of-type { margin-top: 0; } /* Remove margin-top para o primeiro label */

.input-config {
  width: 100%;
  appearance: none;
  background: rgba(2, 6, 23, 0.35);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  margin-bottom: 15px; /* Espaçamento abaixo dos inputs */
}

.input-config:hover { border-color: rgba(148,163,184,0.38); }

.input-config:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(2, 6, 23, 0.45);
  box-shadow: 0 0 0 6px var(--ring);
}

.input-config::placeholder { color: #9aa3b2; opacity: .9; }

/* Date picker icon visível em dark */
input[type="date"].input-config::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.8);
}

select.input-config { background-image: none; }

textarea.input-config { resize: vertical; min-height: 120px; }

/* ------------------------------
   Buttons (.menu-btn)
------------------------------ */
.menu-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
  padding: 12px 18px; /* Ajustado para o login */
  font-weight: 600;
  font-size: 1rem; /* Ajustado para o login */
  color: #fff;
  border-radius: 9999px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,0.16), transparent 40%),
    linear-gradient(90deg, var(--brand) 0%, var(--brand-600) 50%, var(--brand-700) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 18px rgba(79,70,229,0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background-position .2s ease;
  background-size: 180% 100%;
  background-position: 0% 50%;
  width: 100%; /* Botão ocupa largura total */
  margin-top: 25px; /* Espaçamento acima do botão */
}

.menu-btn:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 14px 28px rgba(79,70,229,0.45);
}

.menu-btn:active {
  transform: translateY(0) scale(0.98);
}

.menu-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ------------------------------
   Animations
------------------------------ */
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------
   Responsividade para Login
------------------------------ */
@media (max-width: 600px) {
  header img { height: 50px; }
  .team-box { padding: 20px; border-radius: 14px; }
  .team-box h3 { font-size: 1.1rem; margin-bottom: 15px; }
  label { font-size: 0.95rem; margin-top: 12px; margin-bottom: 3px; }
  .input-config { padding: 10px 12px; font-size: 0.9rem; margin-bottom: 12px; }
  .menu-btn { padding: 10px 15px; font-size: 0.95rem; margin-top: 20px; }
}

@media (max-width: 400px) {
  .team-box { padding: 15px; }
  .team-box h3 { font-size: 1rem; margin-bottom: 10px; }
  label { font-size: 0.9rem; margin-top: 10px; }
  .input-config { padding: 8px 10px; font-size: 0.85rem; margin-bottom: 10px; }
  .menu-btn { padding: 8px 12px; font-size: 0.9rem; margin-top: 15px; }
}


