* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ffc135;
  --orange2: #ffd342;
  --orange3:#FF6B35;
  --pink: #FF4F7B;
  --purple: #7B61FF;
  --blue: #4FACFE;
  --green: #43E97B;
  --bg: #edac24;
  --card: #f0f1f3;
  --surface: #dee1e5;
  --text: #57595f;
  --muted: #8892B0;
  --radius: 20px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  background-image: url("../util/nube.webp");
  background-repeat: no-repeat;
  background-position: top center;
    background-size: cover;
  pointer-events: none;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: -120px;
  width: 100%;
  height: 100%;
  background-image: url(../util/ovalos.webp);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  pointer-events: none;
  z-index: -2;
}

main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.bg-blob.b1 { width: 400px; height: 400px; background: var(--orange); top: -100px; left: -100px; animation-delay: 0s; }
.bg-blob.b2 { width: 300px; height: 300px; background: var(--purple); bottom: -80px; right: -80px; animation-delay: 3s; }
.bg-blob.b3 { width: 200px; height: 200px; background: var(--pink); top: 50%; right: 15%; animation-delay: 5s; }



.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 80px -20px rgb(243 119 22);
}

.logo {
  text-align: center;
  margin-bottom: 8px;
}
.logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 12px;
  box-shadow: 0 8px 30px rgba(255,107,53,0.4);
}
.logo h1 {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 28px 0;
}

.form-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group { margin-bottom: 18px; }

.form-input {
  width: 100%;
  background: var(--surface);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}
.form-input::placeholder { color: var(--muted); font-weight: 400; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892B0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.gender-row {
  display: flex;
  gap: 10px;
}
.gender-btn {
  flex: 1;
  background: var(--surface);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 8px;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gender-btn svg { width: 18px; height: 18px; }
.gender-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.gender-btn.active-male   { border-color: var(--blue);   color: var(--blue);   background: rgba(79,172,254,0.1); }
.gender-btn.active-female { border-color: var(--pink);   color: var(--pink);   background: rgba(255,79,123,0.1); }
.gender-btn.active-other  { border-color: var(--purple); color: var(--purple); background: rgba(123,97,255,0.1); }

.enter-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 8px 24px rgba(255,107,53,0.35);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.enter-btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,107,53,0.45); }
.enter-btn:active { transform: translateY(0); opacity: 0.9; }
.enter-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.error-msg {
  background: rgba(255,79,123,0.12);
  border: 1px solid rgba(255,79,123,0.3);
  border-radius: 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  margin-top: 12px;
  display: none;
}
.error-msg.show { display: block; }

.terms {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.5;
}

.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.char-counter.warn { color: var(--orange); }
.char-counter.over { color: var(--pink); }

.logo-box,
.logo-icon {
  width: 55px;
  height: 55px;
  overflow: hidden;
}
.logo-box svg,
.logo-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .card {
    padding: 36px 24px 32px;
  }
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,107,53,0.28);
}