    @media (max-width: 680px) {
      .container { height: auto; border-radius: 16px; }
      .lado { flex-direction: column; }
      .painel, .painel2 { width: 100%; padding: 30px 24px; }
      .formulario, .formulario2 { width: 100%; padding: 28px 24px; }
    }
    
   /* animação da sombra - container */
    @keyframes sombraPiscando {
        0% {
            box-shadow: 0px 0px 20px royalblue;
        }
        50% {
            box-shadow: 0px 0px 90px rgb(102, 134, 232);
        }
        100% {
            box-shadow: 0px 0px 20px royalblue;
        }
    }

    :root {
      --gold: #CBBD93;
      --gold-dark: #a8976a;
      --dark: #1a1a2e;
      --darker: #12121f;
      --panel: #0f0f1a;
      --form-bg: #f5f4f0;
      --text-dark: rgb(37, 54, 107);
      --text-light: #f5f4f0;
      --error: #e05252;
      --success: #52c07a;
      --border: #d0cfc8;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--darker);
      overflow: hidden;
    }

     body::before {
      content: '';
      position: fixed;
      inset: 0;
      background: radial-gradient(ellipse at 20% 50%, rgb(37, 54, 107) 0%, transparent 60%),
                  radial-gradient(ellipse at 80% 50%, rgb(37, 54, 107) 0%, transparent 60%);
      pointer-events: none;
    }

    /* ===== TOGGLE ===== */
    #toggle { display: none; }

    /* ===== CONTAINER ===== */
    .container {
      width: 900px;
      max-width: 98vw;
      height: 560px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(203,189,147,0.15);
      position: relative;
      margin-bottom: 20px; 
    }

    .slider {
      display: flex;
      width: 200%;
      height: 100%;
      transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    }

    #toggle:checked ~ .container .slider {
      transform: translateX(-50%);
    }

    .lado {
      width: 50%;
      height: 100%;
      display: flex;
      flex-shrink: 0;
    }

     /* ===== PAINEL (metade escura) ===== */
    .painel, .painel2 {
      width: 35%;
      background: rgb(27, 39, 75);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 44px 36px;
      position: relative;
    }

    .painel::after, .painel2::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    

    .bemvindo h2, .bemvindo2 h2 {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      color: var(--text-light);
      line-height: 2;
      margin-bottom: 18px;
      text-align: center;
    }

    .bemvindo p, .bemvindo2 p {
      font-size: 0.82rem;
      color: rgba(245,244,240,0.6);
      line-height: 1.7;
      margin-left: 7px;
      margin-top: 25px;
    }

    .cadastro_login, .cadastro_confirm {
      border-top: 1px solid rgba(203,189,147,0.2);
      padding-top: 20px;
      margin-bottom: 10px;
    }

    .cadastro_login p, .cadastro_confirm p {
      font-size: 0.80rem;
      color: rgba(245,244,240,0.5);
      margin-bottom: 20px;
    }

     .btn-toggle {
      display: inline-block;
      padding: 10px 58px;
      border: 1.5px solid var(--gold);
      border-radius: 30px;
      color: var(--gold);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      letter-spacing: 0.5px;
      margin-left: 35px;
    }

    .btn-toggle:hover {
      background: var(--gold);
      color: var(--darker);
      box-shadow: var(--gold) 0px 0px 9px;
      transition: 0.3s;
    }
    
    /* ===== FORMULÁRIO ===== */
    .formulario, .formulario2 {
      width: 58%;
      background: var(--form-bg);
      padding: 36px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 14px;
      overflow-y: auto;
    }

    .formulario h2, .formulario2 h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      color: var(--text-dark);
      margin-top:20px;  
      margin-bottom: 30px;
      text-align: center;
    }

   /* ===== CAMPOS ===== */
    .campo, .campo2 {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .campo label, .campo2 label {
      font-size: 0.75rem;
      font-weight: 500;
      color: rgb(165, 153, 93);
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .campo input, .campo2 input {
      width: 100%;
      padding: 11px 14px;
      border: 1.55px solid var(--gold);
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      background: white;
      color: var(--text-dark);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .campo input:focus, .campo2 input:focus {
      border-color: var(--gold-dark);
      box-shadow: 0 0 5px var(--gold-dark);
    }

    .campo input:focus::placeholder, .campo2 input:focus::placeholder {
        opacity:0;
        transition: 0.3s;
    }

    .campo input:focus ~ svg, .campo2 input:focus ~ svg { color: var(--gold-dark); }

    .campo input.erro, .campo2 input.erro {
      border-color: var(--error);
      box-shadow: 0 0 0 3px rgba(224,82,82,0.15);
    }

    .campo input.ok, .campo2 input.ok {
      border-color: var(--success);
    }

    .msg-erro {
      font-size: 0.72rem;
      color: var(--error);
      margin-top: 2px;
      display: none;
    }

    .msg-erro.visivel { display: block; }

    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-wrap svg {
      position: absolute;
      left: 12px;
      width: 16px;
      height: 16px;
      color: #999;
      pointer-events: none;
      transition: color 0.2s;
    }

    .input-wrap input { padding-left: 38px !important; }

    /* ===== OPÇÕES ===== */
    .opcoes {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: -8px;
    }

    .lembrar {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .lembrar input[type="checkbox"] {
      width: 15px;
      height: 15px;
      accent-color: var(--gold-dark);
    }

    .lembrar label {
      font-size: 0.78rem;
      color: #666;
      cursor: pointer;
    }

    .esqueci {
      font-size: 0.78rem;
      color: var(--gold-dark);
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .esqueci:hover { 
        opacity: 0.7; 
        text-decoration: underline; 
        color: var(--text-dark);
}


    /* ===== BOTÕES ===== */
    #btnLogin, #btnCadastro {
      padding: 12px;
      background: var(--text-dark);
      color: white;
      border: none;
      border-radius: 10px;
      margin-top:15px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem;
      font-weight: 500;
      cursor: pointer;
      letter-spacing: 0.5px;
      transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
      position: relative;
      overflow: hidden;
    }

    #btnLogin:hover, #btnCadastro:hover {
      background: var(--gold-dark);
      box-shadow: 0 4px 16px rgba(168,151,106,0.35);
      transform: translateY(-1px);
    }

    #btnLogin:active, #btnCadastro:active { transform: translateY(0); }

    #btnLogin.loading, #btnCadastro.loading { opacity: 0.7; pointer-events: none; }

    /* ===== SEPARADOR ===== */
    .separador {
      display: flex;
      align-items: center;
      margin-top: 8px;
      gap: 10px;
      font-size: 0.75rem;
      color: #aaa;
    }

    .separador::before, .separador::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ===== REDES SOCIAIS ===== */
    .redes-sociais, .redes-sociais2 {
      display: flex;
      gap: 30px;
      justify-content: center;
      margin-top:10px;
    }

    .logos {
      width: 40px;
      height: 40px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
      font-size: 18px;
    }

    .logos:hover {
      border-color: var(--gold-dark);
      box-shadow: 0 2px 10px rgba(203,189,147,0.2);
      transform: translateY(-2px);
    }

    /* ===== TOAST ===== */
    #toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(80px);
      background: var(--dark);
      color: white;
      padding: 12px 24px;
      border-radius: 30px;
      font-size: 0.85rem;
      font-weight: 500;
      box-shadow: 0 8px 30px rgba(0,0,0,0.4);
      border-left: 4px solid var(--gold);
      transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
      opacity: 0;
      z-index: 9999;
      white-space: nowrap;
    }

    #toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    #toast.erro { border-left-color: var(--error); }
    #toast.sucesso { border-left-color: var(--success); }

    /* ===== MODAL SENHA ===== */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

    .modal-overlay.aberto { display: flex; }

    .modal {
      background: var(--form-bg);
      border-radius: 16px;
      padding: 36px;
      width: 360px;
      max-width: 92vw;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }

    .modal h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      margin-bottom: 8px;
      color: var(--text-dark);
    }

    .modal p { font-size: 0.82rem; color: #666; margin-bottom: 20px; }

    .modal input {
      width: 100%;
      padding: 15px 14px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      outline: none;
      margin-bottom: 12px;
      transition: border-color 0.2s;
    }

    .modal input:focus { border-color: var(--gold-dark); }

    .modal-btns { display: flex; gap: 10px; }

    .modal-btns button {
      flex: 1;
      padding: 10px;
      border-radius: 10px;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-confirmar { background: var(--dark); color: white; }
    .btn-confirmar:hover { background: var(--gold-dark); }
    .btn-cancelar { background: transparent; border: 1.5px solid var(--border) !important; color: #666; }
    .btn-cancelar:hover { border-color: var(--gold-dark) !important; }

    /* ===== FORÇA DA SENHA ===== */
    .forca-senha {
      display: flex;
      gap: 4px;
      margin-top: 6px;
    }

    .forca-bar {
      flex: 1;
      height: 3px;
      border-radius: 3px;
      background: var(--border);
      transition: background 0.3s;
    }

    .forca-label {
      font-size: 0.7rem;
      color: #aaa;
      margin-top: 3px;
    }

    /* ===== MOSTRAR SENHA ===== */
    .toggle-senha {
      position: absolute;
      right: 12px;
      background: none;
      border: none;
      cursor: pointer;
      color: #aaa;
      padding: 0;
      display: flex;
      align-items: center;
      transition: color 0.2s;
    }

    .toggle-senha:hover { color: var(--gold-dark); }

   
    /*ajustes a mais*/
    .campo2 {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .formulario2 h2{
        margin-top: -20px;
    }
    .campo label, .campo2 label {
      font-size: 0.75rem;
      font-weight: 500;
      color: rgb(165, 153, 93);
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .painel2 h2{
        font-size:28px;
    }

    .painel2 p{
        margin-left:30px;
    }

   .cadastro_confirm .btn-toggle {
      display: inline-block;
      padding: 10px 78px;
      border: 1.5px solid var(--gold);
      border-radius: 30px;
      color: var(--gold);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      letter-spacing: 0.5px;
      margin-left: 47px;
    }
