*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --green:        #1a3a2a;
      --green-mid:    #2d5a3d;
      --green-accent: #3a7d52;
      --green-light:  #e8f2eb;
      --white:        #ffffff;
      --bg:           #f5f7f5;
      --text:         #111a14;
      --muted:        #6b7c6e;
      --border:       #d4e0d7;
      --error:        #c0392b;
      --font-head:    'DM Serif Display', Georgia, serif;
      --font-body:    'Bricolage Grotesque', sans-serif;
    }

    html, body { height: 100%; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

    body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: 100vh;
    }

    /* ── HERO (esquerda) ── */
    .hero {
      background: var(--green);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 2.5rem 3rem;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; top: -100px; right: -100px;
      width: 350px; height: 350px; border-radius: 50%;
      background: rgba(255,255,255,0.03);
      pointer-events: none;
    }
    .hero::after {
      content: '';
      position: absolute; bottom: -80px; left: -80px;
      width: 280px; height: 280px; border-radius: 50%;
      background: rgba(255,255,255,0.03);
      pointer-events: none;
    }

    .hero-brand {
      display: flex; align-items: center; gap: 0.75rem;
      position: relative; z-index: 1;
    }
    .hero-logo {
      width: 44px; height: 44px;
      border: 1.5px solid rgba(255,255,255,0.25);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-head); font-size: 1.35rem; color: #fff;
    }
    .hero-brand-name { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.9); }
    .hero-brand-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 0.1rem; }

    .hero-body { position: relative; z-index: 1; }
    .hero-tag {
      display: inline-block;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 20px;
      padding: 0.3rem 0.85rem;
      font-size: 0.7rem; color: rgba(255,255,255,0.45);
      letter-spacing: 0.1em; text-transform: uppercase;
      margin-bottom: 1.25rem;
    }
    .hero-title {
      font-family: var(--font-head);
      font-size: 2.5rem; line-height: 1.15;
      color: #fff; margin-bottom: 1.1rem;
    }
    .hero-title em { font-style: italic; color: rgba(255,255,255,0.45); }
    .hero-desc {
      font-size: 0.87rem; color: rgba(255,255,255,0.45);
      line-height: 1.7; max-width: 340px;
    }

    .hero-pills {
      display: flex; flex-direction: column; gap: 0.65rem;
      margin-top: 2.25rem;
    }
    .hero-pill {
      display: flex; align-items: center; gap: 0.65rem;
      font-size: 0.8rem; color: rgba(255,255,255,0.45);
    }
    .hero-pill-icon {
      width: 28px; height: 28px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 7px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; flex-shrink: 0;
    }

    .hero-footer {
      position: relative; z-index: 1;
      font-size: 0.7rem; color: rgba(255,255,255,0.2);
    }

    /* ── FORM (direita) ── */
    .form-side {
      background: var(--white);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 3rem 2.5rem;
    }
    .form-wrap { width: 100%; max-width: 380px; }

    .form-title {
      font-family: var(--font-head);
      font-size: 2rem; color: var(--text);
      margin-bottom: 0.35rem; line-height: 1.1;
    }
    .form-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 2rem; }

    .field { margin-bottom: 1rem; }
    .field label {
      display: block; font-size: 0.73rem; font-weight: 600;
      color: var(--text); letter-spacing: 0.05em;
      text-transform: uppercase; margin-bottom: 0.4rem;
    }
    .field input {
      width: 100%; background: var(--bg);
      border: 1.5px solid var(--border); border-radius: 8px;
      padding: 0.72rem 0.9rem;
      color: var(--text); font-family: var(--font-body);
      font-size: 0.9rem; outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .field input:focus {
      border-color: var(--green-accent); background: var(--white);
      box-shadow: 0 0 0 3px rgba(58,125,82,0.1);
    }
    .field input::placeholder { color: #b0c4b5; }

    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 2.8rem; }
    .toggle-pw {
      position: absolute; right: 0.8rem; top: 50%;
      transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      font-size: 0.95rem; color: var(--muted);
      transition: color 0.2s; line-height: 1;
    }
    .toggle-pw:hover { color: var(--green); }

    .remember-row {
      display: flex; align-items: center; gap: 0.5rem;
      margin-bottom: 1.5rem;
    }
    .remember-row input[type="checkbox"] {
      width: 15px; height: 15px;
      accent-color: var(--green); cursor: pointer;
    }
    .remember-row label {
      font-size: 0.8rem; color: var(--muted);
      cursor: pointer; user-select: none;
    }

    .btn-login {
      width: 100%; padding: 0.82rem;
      background: var(--green); color: #fff;
      border: none; border-radius: 8px;
      font-family: var(--font-body); font-size: 0.9rem;
      font-weight: 700; cursor: pointer;
      letter-spacing: 0.02em;
      transition: background 0.2s; position: relative;
    }
    .btn-login:hover    { background: var(--green-mid); }
    .btn-login:disabled { opacity: 0.65; cursor: not-allowed; }
    .btn-login.loading::after {
      content: '';
      position: absolute; right: 1rem; top: 50%;
      transform: translateY(-50%);
      width: 14px; height: 14px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff; border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

    .error-msg {
      margin-top: 1rem; padding: 0.7rem 0.9rem;
      background: #fdf2f2; border: 1.5px solid #f5c6c6;
      border-radius: 7px; font-size: 0.82rem;
      color: var(--error); display: none;
    }

    .form-footer {
      margin-top: 2rem; padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      font-size: 0.78rem; color: var(--muted);
      text-align: center; line-height: 1.65;
    }
    .form-footer a { color: var(--green); text-decoration: none; font-weight: 600; }
    .form-footer a:hover { text-decoration: underline; }

    @media (max-width: 768px) {
      body { grid-template-columns: 1fr; }
      .hero { padding: 1.75rem 1.5rem; }
      .hero-title { font-size: 1.8rem; }
      .hero-pills { display: none; }
      .form-side { padding: 2rem 1.5rem; }
    }