/* ============================================================
   LOGIN.CSS - Tela de Login Premium
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    background: #0A0A0A;
    overflow: hidden;
    color: #FFFFFF;
}

/* ============================================================
   FUNDO ANIMADO
   ============================================================ */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, #1A1A1A 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #150A00 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0D0D0D 0%, #050505 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,0,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridSlide 20s linear infinite;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
@keyframes gridSlide {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: glowFloat 15s ease-in-out infinite;
}
.bg-glow-1 {
    width: 500px; height: 500px;
    background: rgba(255,107,0,0.35);
    top: -150px; left: -150px;
}
.bg-glow-2 {
    width: 400px; height: 400px;
    background: rgba(204,85,0,0.25);
    bottom: -120px; right: -120px;
    animation-delay: -5s;
}
.bg-glow-3 {
    width: 350px; height: 350px;
    background: rgba(255,140,51,0.2);
    top: 40%; right: 15%;
    animation-delay: -10s;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.15); }
    66% { transform: translate(-40px, 50px) scale(0.9); }
}

.bg-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.particle {
    position: absolute;
    background: #FF6B00;
    border-radius: 50%;
    box-shadow: 0 0 8px #FF6B00, 0 0 16px rgba(255,107,0,0.5);
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(30px, -100vh); opacity: 0; }
}

/* ============================================================
   ESTRADA + CAMINHAO
   ============================================================ */
.road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.road-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,107,0,0.3) 15%,
        #FF6B00 50%,
        rgba(255,107,0,0.3) 85%,
        transparent 100%);
    box-shadow: 0 0 20px #FF6B00, 0 0 40px rgba(255,107,0,0.5);
    animation: roadPulse 2s ease-in-out infinite;
}
@keyframes roadPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.truck {
    position: absolute;
    bottom: 35px;
    left: -150px;
    animation: truckDrive 12s linear infinite;
    display: flex;
    align-items: center;
    gap: 5px;
}
.truck-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 10px rgba(255,107,0,0.7));
    animation: truckBounce 0.4s ease-in-out infinite;
}
.truck-dust {
    font-size: 24px;
    opacity: 0.7;
    animation: dustFade 0.8s ease-in-out infinite;
}
@keyframes truckDrive {
    0% { left: -150px; }
    100% { left: calc(100% + 50px); }
}
@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes dustFade {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 0.3; transform: translateX(-4px); }
}

.excavator {
    position: absolute;
    bottom: 30px;
    right: 60px;
    animation: excavatorMove 0.8s ease-in-out infinite;
}
.excavator-icon {
    font-size: 36px;
    filter: drop-shadow(0 4px 10px rgba(255,107,0,0.5));
}
@keyframes excavatorMove {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

/* ============================================================
   CONTEUDO CENTRAL
   ============================================================ */
.login-wrap {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

/* ---------- Badge sistema online ---------- */
.badge-sistema {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(46,125,50,0.15);
    border: 1px solid rgba(46,125,50,0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7CE07E;
    animation: badgePulse 2.5s ease-in-out infinite;
    backdrop-filter: blur(10px);
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(46,125,50,0); }
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #7CE07E;
    border-radius: 50%;
    box-shadow: 0 0 10px #7CE07E;
    animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---------- Card principal ---------- */
.login-card {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 24px;
    padding: 44px 52px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 107, 0, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    animation: cardEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,107,0,0.15) 60deg,
        transparent 120deg
    );
    animation: cardBorderRotate 8s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}
@keyframes cardBorderRotate {
    100% { transform: rotate(360deg); }
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Logo com orbita ---------- */
.logo-stage {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-core {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #FF6B00 0%, #CC5500 70%, #8B3A00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(255,107,0,0.7),
        0 0 80px rgba(255,107,0,0.4),
        0 0 120px rgba(255,107,0,0.2);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.logo-icon {
    font-size: 42px;
    animation: iconBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

.logo-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #FF6B00;
    border-right-color: rgba(255,107,0,0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.logo-orbit-1 {
    width: 110px; height: 110px;
    animation: orbitSpin 4s linear infinite;
}
.logo-orbit-2 {
    width: 130px; height: 130px;
    border-top-color: #FF8C33;
    border-right-color: rgba(255,140,51,0.3);
    animation: orbitSpin 6s linear infinite reverse;
}
.logo-orbit-3 {
    width: 150px; height: 150px;
    border-top-color: rgba(255,107,0,0.6);
    border-right-color: transparent;
    animation: orbitSpin 9s linear infinite;
}
@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Titulo ---------- */
.main-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FF8C33 50%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    line-height: 1.2;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.main-subtitle {
    font-size: 11px;
    color: #FF8C33;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
    transition: opacity 0.4s ease;
    min-height: 16px;
}

/* ---------- Divisor ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 20px;
    justify-content: center;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}
.divider-icon {
    font-size: 15px;
    opacity: 0.8;
    animation: gearSpin 6s linear infinite;
    display: inline-block;
}
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Descricao ---------- */
.login-desc {
    font-size: 13px;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 26px;
}
.version-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 10.5px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------- Botao entrar ---------- */
.btn-enter {
    position: relative;
    width: 100%;
    padding: 17px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF6B00 0%, #CC5500 100%);
    cursor: pointer;
    overflow: hidden;
    font-family: inherit;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 12px 36px rgba(255, 107, 0, 0.4),
        0 0 0 0 rgba(255, 107, 0, 0.4);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 100% { box-shadow: 0 12px 36px rgba(255,107,0,0.4), 0 0 0 0 rgba(255,107,0,0.4); }
    50% { box-shadow: 0 12px 36px rgba(255,107,0,0.6), 0 0 0 8px rgba(255,107,0,0.15); }
}
.btn-enter:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 46px rgba(255, 107, 0, 0.7),
        0 0 0 12px rgba(255, 107, 0, 0.1);
}
.btn-enter:active { transform: translateY(0); }
.btn-enter:disabled { cursor: wait; }

.btn-enter-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}
.btn-enter:hover .btn-enter-bg {
    width: 500px; height: 500px;
}

.btn-enter-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.btn-enter-text {
    font-size: 14px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.btn-enter-arrow {
    font-size: 20px;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn-enter:hover .btn-enter-arrow { transform: translateX(8px); }

.btn-enter-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: #FFFFFF;
    box-shadow: 0 0 10px #FFFFFF;
    transition: width 0.4s ease;
    z-index: 3;
}
.btn-enter-progress.ativo { width: 0; }

/* ---------- Texto de loading ---------- */
.loading-text {
    margin-top: 10px;
    font-size: 11px;
    color: #FF8C33;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.loading-text.visivel { opacity: 1; }

/* ---------- Modulos ---------- */
.modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.module {
    font-size: 10px;
    padding: 5px 12px;
    background: rgba(255, 107, 0, 0.08);
    color: #FF8C33;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    transition: all 0.2s;
    cursor: default;
}
.module:hover {
    background: rgba(255, 107, 0, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

/* ---------- Stats ---------- */
.stats-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    animation: fadeUp 1.2s ease 0.3s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}
.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: #FF6B00;
    text-shadow: 0 0 12px rgba(255,107,0,0.6);
    line-height: 1;
}
.stat-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.stat-sep {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255,107,0,0.4), transparent);
}

/* ---------- Rodape ---------- */
.login-footer {
    margin-top: 6px;
    font-size: 10.5px;
    color: #444;
    letter-spacing: 0.5px;
    animation: fadeUp 1.4s ease 0.5s both;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 560px) {
    .login-card { padding: 32px 24px 28px; border-radius: 20px; }
    .logo-stage { width: 110px; height: 110px; }
    .logo-core { width: 72px; height: 72px; }
    .logo-icon { font-size: 34px; }
    .logo-orbit-1 { width: 88px; height: 88px; }
    .logo-orbit-2 { width: 104px; height: 104px; }
    .logo-orbit-3 { width: 120px; height: 120px; }
    .main-title { font-size: 22px; }
    .btn-enter { padding: 15px 18px; }
    .btn-enter-text { font-size: 12px; letter-spacing: 1.5px; }
    .stats-row { padding: 10px 18px; gap: 12px; }
    .stat-value { font-size: 17px; }
    .module { font-size: 9px; padding: 4px 9px; }
}

@media (max-height: 720px) {
    .badge-sistema { display: none; }
    .stats-row { display: none; }
    .logo-stage { margin-bottom: 12px; }
    .login-card { padding: 30px 40px 26px; }
}


/* ============================================================
   ALFA ADDENDUM v4 - login premium + override de visibilidade
   Marcadores: "ALFA ADDENDUM" ... "FIM ALFA ADDENDUM"
   ============================================================ */

/* ------ sobrescreve o ::before decorativo p/ nao cobrir o form ------ */
.login-card::before { z-index: 0 !important; }

/* Tudo dentro do card fica acima do ::before */
.login-card > * { position: relative; z-index: 1; }

/* ============================================================
   FORM LOGIN
   ============================================================ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 18px;
  text-align: left;
  position: relative;
  z-index: 3;
}

.login-campo {
  display: flex;
  align-items: stretch;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.30);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.login-campo:hover {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(15, 15, 15, 0.92);
}
.login-campo:focus-within {
  border-color: #FF6B00;
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 0 0 3px rgba(255,107,0,.20),
              0 0 22px rgba(255,107,0,.35);
}

/* Icone a esquerda (filho flex, alinhado por stretch) */
.login-campo-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: rgba(255, 107, 0, 0.08);
  border-right: 1px solid rgba(255, 107, 0, 0.15);
  font-size: 16px;
  color: #FF8C33;
  flex-shrink: 0;
  user-select: none;
  transition: background .22s ease, color .22s ease;
}
.login-campo:focus-within .login-campo-icone {
  background: rgba(255, 107, 0, 0.18);
  color: #FFFFFF;
}

/* Input */
.login-campo input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  padding: 16px 14px;
  line-height: 1.2;
}
.login-campo input::placeholder {
  color: #7a7a7a;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}
.login-campo input:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF;
  transition: background-color 9999s ease-in-out 0s;
}

/* Olho */
.login-campo-olho {
  background: transparent;
  border: none;
  padding: 0 16px;
  color: #FF8C33;
  font-size: 15px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity .2s, transform .15s;
  display: flex;
  align-items: center;
  line-height: 1;
}
.login-campo-olho:hover { opacity: 1; transform: scale(1.1); }
.login-campo-olho:active { transform: scale(0.95); }

/* Mensagem de erro */
.login-erro {
  margin: 4px 0 0;
  padding: 11px 14px;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 10px;
  color: #FCA5A5;
  font-size: 12.5px;
  text-align: center;
  font-weight: 600;
  animation: erroShake .4s ease;
  position: relative;
  z-index: 3;
}
@keyframes erroShake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-6px); }
  75%     { transform: translateX(6px); }
}

/* ============================================================
   BADGE "SISTEMA ONLINE" - sempre visivel (mesmo em telas pequenas)
   ============================================================ */
.badge-sistema {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(46,125,50,0.15);
  border: 1px solid rgba(46,125,50,0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7CE07E;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

/* ============================================================
   STATS (10 / 33 / infinito) - sempre visivel
   ============================================================ */
.stats-row {
  display: flex !important;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 0, 0.15);
  flex-shrink: 0;
}

/* ============================================================
   AJUSTES DE ALTURA - preserva TUDO, so compacta
   (sobrescreve o media query original que escondia os elementos)
   ============================================================ */
@media (max-height: 780px) {
  .login-wrap { gap: 10px !important; padding: 12px !important; }

  .badge-sistema {
    display: flex !important;
    padding: 5px 12px !important;
    font-size: 10px !important;
  }
  .stats-row {
    display: flex !important;
    padding: 8px 16px !important;
    gap: 12px !important;
  }
  .stat { min-width: 48px !important; }
  .stat-value { font-size: 17px !important; }
  .stat-label { font-size: 8px !important; }
  .stat-sep   { height: 22px !important; }

  .login-card { padding: 22px 26px 20px !important; }

  .logo-stage { width: 100px !important; height: 100px !important;
                margin-bottom: 12px !important; }
  .logo-core  { width: 68px !important; height: 68px !important; }
  .logo-icon  { font-size: 32px !important; }
  .logo-orbit-1 { width: 82px !important;  height: 82px !important; }
  .logo-orbit-2 { width: 96px !important;  height: 96px !important; }
  .logo-orbit-3 { width: 112px !important; height: 112px !important; }

  .main-title    { font-size: 22px !important; margin-bottom: 4px !important; }
  .main-subtitle { margin-bottom: 12px !important; font-size: 10px !important; }

  .divider      { margin: 4px 0 10px !important; }
  .login-desc   { margin-bottom: 12px !important; font-size: 12px !important; }

  .login-form   { gap: 9px !important; margin: 4px 0 12px !important; }
  .login-campo input { padding: 13px 12px !important; font-size: 14px !important; }
  .login-campo-icone { width: 42px !important; font-size: 15px !important; }

  .btn-enter    { padding: 13px 20px !important; }
  .btn-enter-text { font-size: 12px !important; letter-spacing: 1.4px !important; }

  .modules      { margin-top: 12px !important; padding-top: 10px !important;
                  gap: 5px !important; }
  .module       { font-size: 9px !important; padding: 4px 9px !important; }

  .login-footer { font-size: 10px !important; margin-top: 2px !important; }
}

/* Mobile */
@media (max-width: 560px) {
  .login-card { padding: 24px 22px 22px !important; }
  .login-campo-icone { width: 40px; font-size: 15px; }
  .login-campo input { padding: 14px 12px; font-size: 14px; }
  .login-campo-olho  { padding: 0 14px; font-size: 14px; }
  .login-wrap { padding: 12px !important; gap: 10px !important; }
  .stats-row  { padding: 8px 14px !important; gap: 10px !important; }
  .stat-value { font-size: 16px !important; }
}

/* ==== FIM ALFA ADDENDUM ==== */

/* ============================================================
   ALFA FIX SCROLL v2 (definitivo)
   Resolve de vez: conteudo do topo cortado em zoom 100%.

   Estrategia:
     - html e body rolam normalmente
     - .login-wrap usa flex-start (nunca center quando transborda)
     - em telas altas, um @media recoloca o centro
   ============================================================ */

/* 1) html e body: scroll habilitado, sem travar altura */
html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* garante que nao ha posicionamento que bloqueie o scroll */
    position: static !important;
}

/* 2) .login-wrap: comeca do topo, deixa o body rolar */
.login-wrap {
    height: auto !important;
    min-height: 100vh !important;
    justify-content: flex-start !important;   /* <-- a chave */
    align-items: center !important;
    padding: 40px 20px 40px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}
.login-wrap > * { flex-shrink: 0 !important; }

/* 3) Road continua fixa no rodape da tela (nao rola junto) */
.road {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
}

/* 4) Em telas altas o suficiente, centraliza verticalmente
      (cosmetico apenas; nao afeta scroll) */
@media (min-height: 880px) {
    .login-wrap {
        justify-content: center !important;
        padding: 20px !important;
    }
}

/* 5) Compacta em telas baixas - mas NUNCA esconde */
@media (max-height: 820px) {
    .login-wrap { padding: 24px 16px !important; gap: 12px !important; }
    .login-card { padding: 22px 26px 20px !important; }

    .logo-stage { width: 100px !important; height: 100px !important;
                  margin-bottom: 10px !important; }
    .logo-core  { width: 66px !important; height: 66px !important; }
    .logo-icon  { font-size: 30px !important; }
    .logo-orbit-1 { width: 82px !important;  height: 82px !important; }
    .logo-orbit-2 { width: 96px !important;  height: 96px !important; }
    .logo-orbit-3 { width: 112px !important; height: 112px !important; }

    .main-title    { font-size: 22px !important; margin-bottom: 4px !important; }
    .main-subtitle { font-size: 10px !important; margin-bottom: 12px !important; }
    .divider       { margin: 4px 0 10px !important; }
    .login-desc    { font-size: 12px !important; margin-bottom: 12px !important; }

    .login-form    { gap: 9px !important; margin: 4px 0 12px !important; }
    .login-campo input { padding: 13px 12px !important; font-size: 14px !important; }
    .login-campo-icone { width: 42px !important; font-size: 15px !important; }

    .btn-enter     { padding: 13px 20px !important; }
    .btn-enter-text { font-size: 12px !important; letter-spacing: 1.4px !important; }

    .modules       { margin-top: 12px !important; padding-top: 10px !important;
                     gap: 5px !important; }
    .module        { font-size: 9px !important; padding: 4px 9px !important; }

    .badge-sistema { padding: 5px 12px !important; font-size: 10px !important;
                     display: flex !important; }
    .stats-row     { padding: 8px 16px !important; gap: 12px !important;
                     display: flex !important; }
    .stat          { min-width: 48px !important; }
    .stat-value    { font-size: 17px !important; }
    .stat-label    { font-size: 8px !important; }
    .stat-sep      { height: 22px !important; }

    .login-footer  { font-size: 10px !important; margin-top: 2px !important; }
}

/* 6) Ultra-compacto para netbooks (1366x768 etc) */
@media (max-height: 700px) {
    .login-wrap { padding: 16px 14px !important; gap: 9px !important; }
    .login-card { padding: 18px 22px 16px !important; border-radius: 18px !important; }

    .logo-stage { width: 84px !important; height: 84px !important;
                  margin-bottom: 8px !important; }
    .logo-core  { width: 56px !important; height: 56px !important; }
    .logo-icon  { font-size: 26px !important; }
    .logo-orbit-1 { width: 70px !important;  height: 70px !important; }
    .logo-orbit-2 { width: 82px !important;  height: 82px !important; }
    .logo-orbit-3 { width: 96px !important;  height: 96px !important; }

    .main-title    { font-size: 20px !important; }
    .main-subtitle { margin-bottom: 8px !important; }
    .divider       { margin: 2px 0 6px !important; }
    .login-desc    { margin-bottom: 8px !important; font-size: 11px !important; }

    .login-form    { gap: 8px !important; margin: 2px 0 8px !important; }
    .login-campo input { padding: 11px 12px !important; font-size: 13.5px !important; }
    .login-campo-icone { width: 38px !important; font-size: 14px !important; }

    .btn-enter     { padding: 11px 18px !important; }
    .btn-enter-text { font-size: 11.5px !important; }

    .modules       { margin-top: 8px !important; padding-top: 8px !important; }
    .module        { font-size: 8.5px !important; padding: 3px 8px !important; }

    .badge-sistema { padding: 4px 10px !important; font-size: 9px !important; }
    .stats-row     { padding: 6px 14px !important; gap: 10px !important; }
    .stat-value    { font-size: 15px !important; }
    .stat-label    { font-size: 7.5px !important; }
    .stat-sep      { height: 18px !important; }
}

/* 7) Trava extra: nada deve ter position fixed/absolute que
      cubra o topo da pagina. Se algum overlay aparecer, ele fica
      com pointer-events none para nao bloquear o scroll. */
.bg-layer, .bg-grid, .bg-glow, .bg-particles {
    pointer-events: none !important;
}

/* ==== FIM ALFA FIX SCROLL v2 ==== */
