/* index.php — CSS extraído */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold:        #f9d423;
      --orange:      #ff4e50;
      --accent:      #f97316;
      --footer-h: 44px;
      --scene-h: 115px;
      --body-bottom: calc(var(--footer-h) + var(--scene-h) + 16px);
    }

    body {
      font-family: 'Rubik', sans-serif;
      background: #fdf8f0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow-x: hidden;
      overflow-y: auto;
      position: relative;
      padding: 10px 16px var(--body-bottom);
    }

    #codeCanvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      opacity: 0;
    }

    /* ── Card principal ── */
    .card {
      position: relative;
      z-index: 10;
      display: flex;
      width: min(920px, 100%);
      height: clamp(460px, calc(100dvh - 223px), 700px);
      min-height: 440px;
      border-radius: clamp(16px, 2vw, 28px);
      overflow: hidden;
      box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
      animation: cardIn 0.85s cubic-bezier(.22,.68,0,1.15) both;
    }
    @keyframes cardIn { from { opacity:0; transform:translateY(28px) scale(0.97); } to { opacity:1; transform:none; } }

    /* ── Painel esquerdo ── */
    .left {
      flex: 0 0 42%;
      background: linear-gradient(145deg, #f9d423 0%, #ff7043 55%, #ff4e50 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: clamp(16px, 3vh, 48px) clamp(16px, 4vw, 36px);
      position: relative;
      overflow: hidden;
    }
    .left::before {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 14px);
    }
    .left-brand {
      font-size: clamp(1.7rem, 3vw, 2.3rem);
      font-weight: 700;
      color: #fff;
      text-shadow: 0 2px 12px rgba(0,0,0,0.18);
      letter-spacing: -0.5px;
      margin-bottom: 8px;
      position: relative;
    }
    .left-sub {
      font-size: clamp(0.78rem, 1.3vw, 0.93rem);
      color: rgba(255,255,255,0.88);
      text-align: center;
      max-width: 235px;
      line-height: 1.55;
      margin-bottom: 30px;
      position: relative;
    }
    .emoji-wrap {
      position: relative;
      cursor: pointer;
      filter: drop-shadow(0 0 18px rgba(255,215,0,0.55));
      transition: transform 0.3s ease, filter 0.3s ease;
    }
    .emoji-wrap:hover {
      transform: scale(1.14) rotate(7deg);
      filter: drop-shadow(0 0 28px rgba(255,215,0,0.9));
    }
    /* SVG do emoji escala com o painel */
    .emoji-wrap svg {
      width: clamp(100px, 18vw, 160px);
      height: auto;
    }
    .badge-row {
      display: flex;
      gap: 8px;
      margin-top: 28px;
      position: relative;
      flex-wrap: wrap;
      justify-content: center;
    }
    .badge {
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.32);
      backdrop-filter: blur(6px);
      border-radius: 20px;
      padding: 5px 13px;
      font-size: clamp(0.66rem, 1vw, 0.76rem);
      color: #fff;
      font-weight: 500;
      white-space: nowrap;
    }

    /* ── Painel direito ── */
    .right {
      flex: 1;
      background: #ffffff;
      padding: clamp(16px, 3vh, 52px) clamp(16px, 5vw, 44px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-left: 1px solid #f0ebe0;
      overflow-y: auto;
    }
    .right h1 {
      font-size: clamp(1.4rem, 2.8vw, 1.8rem);
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 5px;
      letter-spacing: -0.4px;
    }
    .right .subtitle {
      font-size: 0.87rem;
      color: #888;
      margin-bottom: clamp(12px, 2vh, 30px);
    }
    .sup-label {
      font-size: 0.72rem; font-weight: 700;
      color: var(--accent); text-transform: uppercase;
      letter-spacing: 0.08em; margin-bottom: 4px;
    }
    .err-box {
      background: #fff1f1;
      border: 1px solid #fca5a5;
      color: #b91c1c;
      border-radius: 10px;
      padding: 10px 14px;
      font-size: 0.86rem;
      margin-bottom: 18px;
    }
    .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: clamp(8px, 1.5vh, 16px); }
    .form-group label {
      font-size: 0.72rem; font-weight: 700;
      color: #c9611a;
      letter-spacing: 0.08em; text-transform: uppercase;
    }
    .form-group input,
    .form-group select {
      background: #f7f4ef;
      border: 1px solid #e0d8cc;
      border-radius: 10px;
      padding: 11px 15px;
      color: #1a1a1a;
      font-family: 'Rubik', sans-serif;
      font-size: 0.96rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      width: 100%;
      height: clamp(38px, 5vh, 46px);
    }
    .form-group input::placeholder { color: #bbb; }
    .form-group input:focus,
    .form-group select:focus {
      border-color: #f97316;
      box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
    }
    /* ── Select / Combobox ── */
    .form-group select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      padding-right: 40px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 18px;
      cursor: pointer;
    }
    .form-group select option {
      background: #fff;
      color: #1a1a1a;
      font-size: 0.96rem;
      padding: 8px 12px;
    }
    .form-group select option:disabled {
      color: #bbb;
    }
    .btn-submit {
      width: 100%; padding: clamp(10px, 1.8vh, 13px); margin-top: 8px;
      background: linear-gradient(135deg, var(--gold) 0%, #ffb347 50%, var(--orange) 100%);
      border: none; border-radius: 10px;
      font-family: 'Rubik', sans-serif;
      font-size: 1rem; font-weight: 700;
      color: #1a1a1a; cursor: pointer;
      box-shadow: 0 6px 24px rgba(249,212,35,0.35);
      transition: transform 0.2s, box-shadow 0.2s;
      letter-spacing: 0.2px;
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(249,212,35,0.5); }
    .btn-submit:active { transform: none; }
    .link-row {
      margin-top: clamp(8px, 1.5vh, 20px); text-align: center;
      font-size: 0.86rem; color: #999;
    }
    .link-row a { color: #f97316; text-decoration: none; font-weight: 600; transition: color 0.2s; }
    .link-row a:hover { color: #ea6c00; text-decoration: underline; }
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 44px !important; }
    .pw-eye {
      position: absolute; right: 0; top: 0; height: 100%; width: 44px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #aaa; transition: color .2s;
      background: none; border: none; outline: none; padding: 0;
    }
    .pw-eye:hover { color: #f97316; }
    .pw-eye svg { width: 18px; height: 18px; flex-shrink: 0; pointer-events: none; }

    /* ── Responsividade ──
       Tablet (≤760px): card empilha na vertical, painel esq fica no topo
       Mobile (≤480px): padding menor, card ocupa toda a largura
    */
    @media (max-width: 760px) {
      .card {
        flex-direction: column;
        width: 100%;
        border-radius: 18px;
        height: auto;
        min-height: unset;
      }
      .left {
        padding: 28px 22px 22px;
        min-height: unset;
        flex: none;
      }
      .right {
        flex: none;
        padding: 26px 20px 28px;
        overflow-y: visible;
      }
      .badge-row { display: none; }
    }

    @media (max-width: 480px) {
      body { padding-left: 10px; padding-right: 10px; }
      .left { padding: 22px 16px 18px; }
      .right { padding: 22px 16px 24px; }
      .right h1 { font-size: 1.3rem; }
      .form-group select {
        font-size: 1rem; /* evita zoom automático no iOS */
      }
    }
    /* Rodapé: estilos definidos em shared.css */
