:root {
  --navy: #2b2a42;
  --navy-border: rgba(255, 255, 255, 0.45);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
}

/* ==========================================================
   MOBILE FIRST — base styles below are the small-screen layout.
   Everything is a single stacked column: form panel, then image.
   Desktop overrides live in the min-width media query at the end.
========================================================== */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- form panel ---------- */
.form-panel {
  background: var(--navy);
}

.panel-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-icon { width: 46px; height: 35px; flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 340px;
}

.hidden-field { position: absolute; left: -9999px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--navy-border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 16px; /* 16px minimum on mobile prevents iOS auto-zoom on focus */
  color: var(--white);
  font-family: inherit;
}

.field input::placeholder { color: rgba(255, 255, 255, 0.35); }

.field input:focus {
  outline: none;
  border-color: var(--white);
}

.cta {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.cta:hover { background: var(--white); color: var(--navy); }
.cta:active { background: var(--white); color: var(--navy); }

.whatsapp {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.whatsapp a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--white);
}

/* ---------- image panel ---------- */
/* Hidden on mobile — only shown at the desktop breakpoint below */
.image-panel {
  display: none;
}

/* To use a real photo instead of the placeholder gradient, replace the
   background rule above with:
   background-image: url('your-photo.jpg');
   background-size: cover;
   background-position: center;
*/

/* ==========================================================
   DESKTOP AND UP — switch to the split-screen layout
========================================================== */
@media (min-width: 860px) {
  .page {
    flex-direction: row;
    display: grid;
    grid-template-columns: 62% 38%;
  }

  .form-panel {
    display: flex;
    align-items: center;
    border-right:8px solid #444668;
  }

  .panel-inner {
    padding: 48px 40px;
  }

  .brand { gap: 14px; margin-bottom: 56px; }
  .brand-icon { width: 56px; height: 42px; }
  .brand-name { font-size: 15px; }

  h1 { font-size: 36px; margin-bottom: 20px; }

  .subtitle { font-size: 16px; margin-bottom: 40px; }

  .field input { font-size: 14px; }

  .cta { 
    width: auto;
    margin-top:24px;
  
  }

  .whatsapp { text-align: left; }

  .image-panel {
    display: block;
    min-height: 100%;
    background:
      linear-gradient(180deg, rgba(43,42,66,0) 0%, rgba(43,42,66,0.15) 100%),
      linear-gradient(135deg, #e9e2d3 0%, #cfd6d1 45%, #b9c2c6 100%);
    background-size: cover;
    background-position: center;
  }

  /* To use a real photo instead of the placeholder gradient, replace the
     background rule above with:
     background-image: url('your-photo.jpg');
     background-size: cover;
     background-position: center;
  */
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #7ea0ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
