@media (max-width: 600px) {

  body {
    align-items: flex-start;
    padding-top: 20px;
    background: #eaf8fb;
  }

  .container {
    width: 360px;
    height: auto;
    border-radius: 20px;
    margin: 0 auto;
    margin-top: 2rem;
  }

  /* esconder logo para mobile (não aparece no vídeo) */
  .circle-logo {
    display: none;
  }

  /* TOPO CURVO (header) */
  .toggle-container {
    position: relative;
    width: 100%;
    height: 200px;
    left: 0;
    transform: none !important;
    overflow: visible;
  }

  .toggle {
    width: 100%;
    height: 200px;
    margin-top: 2rem;
    transform: none !important;
    left: 0;

    background: linear-gradient(135deg,#043742,red);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.08);
  }

  .toggle-panel {
    width: 100%;
    
    position: relative;
    text-align: center;
    padding: 30px 20px;
    color: #fff;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
  }

  .toggle-panel h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
  }

  .toggle-panel button {
    margin-top: 12px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.9);
    color: #fff;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
  }

  /* FORMULÁRIO centralizado abaixo do topo curvo */
  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    z-index: 3;
    margin-top: 1rem;
  }

  .form-container form {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    margin: 0 16px;
  }

  /* aumentar título do formulário e alinhar com vídeo */
  .form-container h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: #222;
  }

  .form-container h2 {
    text-align: center;
    margin-bottom: 10px;
  }

  .form-container input {
    background: #f4f6f7;
    border-radius: 25px;
    padding: 12px 16px;
    margin: 10px 0;
    border: none;
  }

  .form-container button {
    background: linear-gradient(90deg,#006b72,red);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 30px;
    width: 160px;
    margin: 16px auto 0;
    display: block;
    cursor: pointer;
  }

  .form-container button:hover {
    box-shadow: 0 8px 18px rgba(0,199,230,0.2);
  }

  /* inputs maiores e com sombra sutil como no vídeo */
  .form-container input {
    background: #f4f6f7;
    border-radius: 25px;
    padding: 14px 20px;
    margin: 12px 0;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }

  /* removed semicircle and welcome text (disabled) */
  .container::after,
  .container::before,
  .container.active::before {
    display: none !important;
    content: none !important;
  }

  /* visibilidade dos formulários controlada pelo JS existente */
  /* animação vertical (mobile): manter ambos no fluxo e animar translateY */
  .form-container {
    transition: transform 0.5s ease, opacity 0.5s ease, max-height 0.5s ease;
    overflow: hidden;
  }

  .sign-in, .sign-up {
    position: relative;
    width: 100%;
    opacity: 1;
    max-height: 1200px;
    transform: translateY(0);
    pointer-events: auto;
    transition: transform 0.45s ease, opacity 0.45s ease, max-height 0.45s ease;
  }

  /* estado inicial: mostrar sign-in, esconder sign-up (fora da tela abaixo) */
  .sign-up {
    transform: translateY(30px);
    opacity: 0;
    max-height: 0;
    pointer-events: none;
  }

  /* quando ativa (pressionou "Registrar") mostrar sign-up empurrando sign-in para cima */
  .container.active .sign-up {
    transform: translateY(0);
    opacity: 1;
    max-height: 1200px;
    pointer-events: auto;
  }

  .container.active .sign-in {
    transform: translateY(-30px);
    opacity: 0;
    max-height: 0;
    pointer-events: none;
  }

}