:root{
  --bg:#fbf5ee;
  --card:#ffffff;
  --text:#0b2b3a;
  --muted:#6b7a86;
  --btn:#4f768d;
  --btnText:#fff;
  --line:#e8edf1;
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  background: var(--bg);
  color: var(--text);
  min-height:100vh;
}

.wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 40px 16px;
}

.card{
  width: min(560px, 92vw);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 72px 52px 38px;   /* 👈 antes 78px (recorta abajo) */
  position:relative;

  min-height: unset;         /* 👈 quita el alto fijo para que no deje “hueco” */
  display:flex;
  flex-direction:column;
}

.header h1{
  margin: 0 0 24px;
  text-align:center;
  letter-spacing: -.5px;
  font-weight:700;
  font-size: clamp(22px, 4vw, 36px); /* 👈 clamp */
  line-height: 1.2;
  color:#003b5c;
  margin-bottom: 30px;
}

.brand{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-bottom: 36px;
}

.brand-mark{
  width:46px;
  height:30px;
  position:relative;
  transform: rotate(-14deg);
  transform-origin: left center;
}

.brand-mark span{
  position:absolute;
  left:0; right:0;
  height:7px;
  border-radius:7px;
}
.brand-mark span:nth-child(1){ top:0; background:#0a3d5a;}
.brand-mark span:nth-child(2){ top:8px; background:#f3c33a;}
.brand-mark span:nth-child(3){ top:16px; background:#e55345;}

.brand-name{
  font-size: clamp(26px, 4vw, 38px); /* 👈 clamp */
  font-weight:899;
  color:#1a1a1a;
  letter-spacing: -1px;
}

.form{
  width: min(420px, 100%);   /* 👈 más angosto (inputs menos anchos) */
  margin: 0 auto;
  display:grid;
  gap:36px;
  flex-grow: 1;                   /* 👈 esto empuja el footer hacia abajo */
}

label{ 
  display:block;
}

label span{
  display:block;
  font-size: clamp(17px, 2.4vw, 20px); /* 👈 clamp */
  font-weight:600;
  margin-bottom:10px;
  color: #003b5c;
}

input{
  display:block;
  width:100%;
  padding: 18px 20px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-size: 16px;
  color:#666;
}
input:focus{
  border-color:#b9c9d4;
  box-shadow: 0 0 0 4px rgba(79,118,141,.12);
}

.btn{
  width: 100%;
  margin: 26px 0 0;          /* un poco más de aire antes del botón */
  display:block;

  padding: 18px 16px;        /* 👈 más alto */
  border:0;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btnText);
  font-weight:700;
  font-size:18px;            /* 👈 más grande */
  cursor:pointer;

  box-shadow: 0 6px 20px rgba(11, 43, 58, .18); /* similar al look “pro” */
}
.btn:hover{ filter:brightness(.98); }
.btn:active{ transform: translateY(1px); }

.linklike{
  display:inline-block;
  text-align:center;
  text-decoration:none;
}

.alert{
  background:#fff4f4;
  border:1px solid #ffd2d2;
  color:#8a1f1f;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 16px;
  font-weight:600;
}

/* footer demo */
.footer{
  width: min(520px, 100%);
  margin: 32px auto 0;  /* 👈 menos hueco arriba */
  padding-top: 14px;
  border-top:1px solid var(--line);
}
.footer-logos{
  display:flex;
  justify-content:center;
  align-items:center;
}

.footer-logos img{
  width: 100%;
  max-width: 420px;   /* ajusta si lo quieres más grande */
  height: auto;
  display:block;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color: var(--muted);
  font-weight:700;
}
.mini{ font-size:12px; }

/* background shapes */
.bg-shapes{ position:fixed; inset:0; pointer-events:none; }
.shape{ position:absolute; opacity:1; }
.shape-left{
  width: 420px;
  height: 720px;
  left: -230px;
  bottom: -190px;
  background:#ff6b3a;
  border-radius: 50%;
  transform: rotate(8deg);
}
.shape.dot{
  width:70px; height:70px;
  left: 120px;
  bottom: 110px;          /* 👈 antes top */
  background:#5c63c9;
  border-radius:999px;
}
.shape.pill{
  width: 92px; height: 320px;
  border-radius: 999px;
}
.pill-yellow{ right: 60px; top: 40px; background:#f2bf2f; transform: rotate(20deg); }
.pill-cyan{ right: 40px; top: 220px; background:#20c4d6; transform: rotate(18deg); height: 360px; }
.pill-yellow-2{ right: 80px; bottom: 80px; background:#f2bf2f; transform: rotate(18deg); height: 240px; }

@media (max-width:520px){
  .wrap{
    padding: 24px 14px;
  }

  .card{
    padding: 32px 20px 20px;
  }

  .header h1{
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 20px;
  }

  .brand{
    margin-bottom: 24px;
  }

  .brand-name{
    font-size: 26px;
  }

  label span{
    font-size: 17px;
  }

  input{
    padding: 16px 16px;
    font-size: 15px;
  }

  .btn{
    padding: 16px;
    font-size: 16px;
  }

  .footer{
    margin-top: 24px;
    padding-top: 12px;
  }
}

@media (max-width: 900px){
  .card{
    padding: 56px 40px 32px;
  }

  .brand-name{
    font-size: 32px;
  }

  .header h1{
    font-size: 30px;
  }
}