/* =====================================================================
   Página de login — Painel Dr. Marcelo Carvalho
   Paleta azul + branco clean, com decoração sutil
   ===================================================================== */

:root {
  --ink:        #0E2A52;
  --ink-2:      #1E63B8;
  --ink-3:      #475569;
  --ink-4:      #94A3B8;
  --paper:      #F7FAFD;
  --paper-2:    #FFFFFF;
  --paper-3:    #EFF4FA;
  --line:       #DBE4EF;
  --line-2:     #C5D2E2;
  --accent:     #3B82F6;
  --accent-soft:#DBEAFE;
  --sage:       #10B981;
  --sage-soft:  #D1FAE5;
  --err:        #DC2626;
  --err-soft:   #FEE2E2;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(59,130,246,.08), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(30,99,184,.10), transparent 60%),
    linear-gradient(135deg, #F7FAFD 0%, #EFF4FA 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

/* Decoração — orbs flutuantes em azul */
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.orb-1 {
  width: 380px; height: 380px;
  top: -100px; left: -80px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  animation: float 18s ease-in-out infinite;
}
.orb-2 {
  width: 420px; height: 420px;
  bottom: -140px; right: -80px;
  background: radial-gradient(circle, #1E63B8 0%, transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}
.orb-3 {
  width: 260px; height: 260px;
  top: 40%; right: 18%;
  background: radial-gradient(circle, #93C5FD 0%, transparent 70%);
  opacity: .25;
  animation: float 26s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.06); }
}

/* Card central */
.login-wrap {
  position: relative; z-index: 1;
  width: 100%;
  display: flex; justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 28px;
  width: 100%; max-width: 440px;
  box-shadow:
    0 24px 60px rgba(14,42,82,.14),
    0 4px 16px rgba(14,42,82,.06),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* Cabeçalho */
.login-head { text-align: center; margin-bottom: 28px; }
.login-logo {
  height: 110px; width: auto; display: block; margin: 0 auto 18px;
  object-fit: contain;
}
.login-kicker {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-2);
  display: block; margin-bottom: 8px;
}
.login-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.login-sub {
  font-size: 13px; color: var(--ink-3);
  margin: 0; line-height: 1.5;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.field input {
  font-family: var(--font-sans);
  font-size: 15px; color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: all .15s;
  width: 100%;
}
.field input:focus {
  outline: none;
  border-color: var(--ink-2);
  background: var(--paper-2);
  box-shadow: 0 0 0 4px rgba(30,99,184,.10);
}
.field input::placeholder { color: var(--ink-4); }

.senha-wrap { position: relative; }
.senha-wrap input { padding-right: 44px; }
.btn-toggle-senha {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  color: var(--ink-4); cursor: pointer;
  padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.btn-toggle-senha:hover { color: var(--ink-2); background: var(--paper-3); }

/* Feedback */
.form-feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
}
.form-feedback.ok  { display: block; background: var(--sage-soft); color: var(--sage); }
.form-feedback.err { display: block; background: var(--err-soft);  color: var(--err); }

/* Botão entrar */
.btn-entrar {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper-2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  margin-top: 6px;
}
.btn-entrar:hover:not(:disabled) {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14,42,82,.18);
}
.btn-entrar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Footer */
.login-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.login-foot .dot { margin: 0 8px; opacity: .6; }

@media (max-width: 480px) {
  .login-card { padding: 28px 22px 20px; border-radius: 16px; }
  .login-logo { height: 84px; }
  .login-title { font-size: 22px; }
}
