* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    min-height: 100vh;
    font-family: 'michroma', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--panel-bg);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
  }

  /* Container do Alternador de Tema (Flutuante no topo direito) */
  .theme-toggle-container {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
  }

  .theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
  }

  .theme-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-cyan);
  }

  .theme-toggle-btn i {
    font-size: 18px;
  }

  .shell {
    width: min(100%, 1000px);
    position: relative;
    z-index: 1;
  }

  /* Cartão de Login Estilo Glassmorphic Super Premium */
  .card-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    background: var(--cinza);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
  }

  /* Lado Esquerdo: Branding Centralizado (Apenas o Logo) */
  .brand-side {
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    border-right: 2px solid var(--cinza);
  }

  .brand-logo-container {
    width: 100%;
    max-width: 380px;
    padding: 32px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
  }

  body.light-mode .brand-logo-container {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .brand-logo-container img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    filter: var(--logo-filter);
    transition: filter 0.4s ease, transform 0.3s ease;
  }

  .brand-logo-container:hover img {
    transform: scale(1.02);
  }

  /* Linha de Divisão Vertical (Destaque do mockup) */
  .divider-line {
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: var(--divider-color);
    transform: translateX(-50%);
    pointer-events: none;
  }

  /* Lado Direito: Formulário de Acesso */
  .form-side {
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-wrap {
    width: 100%;
    max-width: 340px;
  }

  .form-wrap h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    color: var(--cinza-escuro);
    text-align: center;
    font-family: 'michroma', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
  }

  /* Campos de Entrada Redondos (Estilo Pill do Mockup) */
  .field {
    margin-bottom: 20px;
    position: relative;
  }

  .field label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--cinza);
    font-family: 'michroma', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  .input-wrapper {
    position: relative;
    display: block;
    width: 100%;
  }

  .input-wrapper > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cinza-escuro);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
  }

  .field input {
    width: 100%;
    height: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    outline: none;
    padding: 0 48px;
    font-size: var(--text-4);
    font-weight: 400;
    font-family: 'michroma', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cinza-escuro);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
  }

  .field input#password {
    padding-right: 52px;
  }

  .field input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
    font-size: var(--text-3);
  }

  .field input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--input-focus);
  }

  body.light-mode .field input:focus {
    background: #ffffff;
  }

  /* Botão revelar senha */
  .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--cinza-escuro);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
  }

  .password-toggle i {
    font-size: 16px;
    pointer-events: none;
  }

  .password-toggle:hover {
    color: var(--accent-cyan);
  }

  /* Opções Extras */
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
    font-family: system-ui, sans-serif;
  }

  .form-options .checkbox_container {
    margin: 0;
  }

  .form-options .checkbox_container .subtitulo {
    text-transform: none;
    font-size: 13px;
    color: var(--text-sub);
  }

  .forgot-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }

  .forgot-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
  }

  /* Ações e Botão de Submit */
  .actions {
    margin-top: 36px;
  }

  

  /* Responsividade Impecável (Mobile) */
  @media (max-width: 868px) {
    .card-login {
      grid-template-columns: 1fr;
      min-height: auto;
      border-radius: 24px;
    }
    
    .brand-side {
      padding: 48px 32px 32px 32px;
      align-items: center;
      text-align: center;
    }

    .brand-logo-container {
      padding: 24px 16px;
      max-width: 280px;
    }

    .divider-line {
      position: relative;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 80%;
      height: 1px;
      transform: translateX(-50%);
      margin: 10px 0;
    }

    .form-side {
      padding: 24px 32px 48px 32px;
    }

    .form-wrap h2 {
      font-size: 22px;
      margin-bottom: 24px;
    }
  }