:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dfe7f3;
  --line-strong: #cfd8e6;

  --text: #111b34;
  --text-soft: #667085;

  --blue: #2f69ff;
  --blue-dark: #1f4fe0;
  --green: #10d364;
  --green-dark: #08bc57;

  --primary-gradient: linear-gradient(90deg, #2f69ff 0%, #14d45f 100%);
  --shadow-lg: 0 24px 60px rgba(25, 52, 100, 0.12);
  --shadow-md: 0 12px 30px rgba(30, 64, 175, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 105, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 211, 100, 0.07), transparent 22%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.welcome-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.welcome-container {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.brand-panel {
  padding: 42px 34px 30px;
  background:
    radial-gradient(circle at 18% 24%, rgba(47, 105, 255, 0.08), transparent 20%),
    radial-gradient(circle at 85% 18%, rgba(16, 211, 100, 0.10), transparent 15%),
    linear-gradient(180deg, #fafdff 0%, #f3f8ff 100%);
  border-right: 1px solid rgba(225, 232, 242, 0.9);
  display: flex;
  flex-direction: column;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-logo-text {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  display: inline-block;
}

.brand-nameOne {
  color: #2467ff;
}

.brand-nameTwo {
  color: #16c766;
}

.brand-copy h2 {
  margin: 0 0 10px;
  font-size: 2.15rem;
  line-height: 1.15;
  font-weight: 800;
}

/* Esta regla base se queda por si usas un <span> normal en otro título */
.brand-copy h2 span {
  color: var(--blue);
}

/* 🚨 Aquí le ganamos la jerarquía al span general */
.brand-copy h2 span.brand-nameOne {
  color: #2467ff; /* Puedes usar var(--blue) si es exactamente el mismo azul */
}

.brand-copy h2 span.brand-nameTwo {
  color: #16c766;
}

.brand-copy p {
  margin: 0;
  max-width: 480px;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.brand-illustration-wrap {
  margin-top: 10px;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.brand-illustration {
  width: auto;
  max-width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: contain;
  transform: translateY(-28px) scale(1.12);
}

.features-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.bank-icon {
  color: var(--blue);
  background: rgba(47, 105, 255, 0.1);
}

.shield-icon {
  color: #2459ff;
  background: rgba(36, 89, 255, 0.1);
}

.growth-icon {
  color: var(--green-dark);
  background: rgba(16, 211, 100, 0.12);
}

.feature-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.brand-footer {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.brand-footer a {
  font-weight: 700;
}

.auth-panel {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.auth-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 18px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  position: relative;
  padding: 14px 4px 16px;
  color: #8a94a6;
  font-weight: 700;
  transition: 0.25s ease;
}

.tab-btn.active {
  color: var(--blue);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(19, 57, 116, 0.06);
  padding: 26px;
  min-height: 560px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
}

.auth-card-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.93rem;
  font-weight: 700;
  color: #475467;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-wrap:focus-within {
  border-color: rgba(47, 105, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 105, 255, 0.08);
}

.input-icon {
  width: 48px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #667085;
  flex-shrink: 0;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-prefix {
  padding: 0 14px 0 16px;
  color: #344054;
  font-weight: 700;
  border-right: 1px solid var(--line);
  margin-right: 8px;
}

.input-wrap input {
  width: 100%;
  height: 56px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0 16px 0 0;
}

.toggle-password {
  width: 48px;
  height: 48px;
  color: #667085;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-links-right {
  justify-content: flex-end;
}

.secondary-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
}

.btn {
  min-height: 56px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 12px 24px rgba(47, 105, 255, 0.2);
}

.switch-text {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.inline-tab-link {
  color: var(--blue);
  font-weight: 800;
  padding: 0;
  margin-left: 4px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -4px;
}

.check-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.check-row label {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.check-row a {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .welcome-container {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    border-right: none;
    border-bottom: 1px solid rgba(225, 232, 242, 0.9);
  }

  .auth-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .welcome-shell {
    padding: 14px;
  }

  .welcome-container {
    border-radius: 24px;
  }

  .brand-panel,
  .auth-panel {
    padding: 22px 18px;
  }

  .brand-header {
    justify-content: center;
    text-align: center;
  }

  .brand-copy {
    text-align: center;
  }

  .brand-copy h2 {
    font-size: 1.8rem;
  }

  .brand-copy p {
    font-size: 0.98rem;
    margin: 0 auto;
  }

  .features-card {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px;
  }

  .feature-icon {
    margin: 0;
  }

  .auth-tabs {
    justify-content: center;
    gap: 22px;
  }

  .auth-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .auth-card-header h2 {
    font-size: 1.65rem;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .welcome-shell {
    padding: 10px;
  }

  .welcome-container {
    border-radius: 20px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .brand-copy h2 {
    font-size: 1.55rem;
  }

  .auth-tabs {
    gap: 16px;
  }

  .tab-btn {
    font-size: 0.95rem;
  }

  .auth-card-header h2 {
    font-size: 1.45rem;
  }

  .auth-card-header p,
  .switch-text,
  .secondary-link,
  .brand-footer,
  .check-row label {
    font-size: 0.9rem;
  }

  .input-wrap {
    min-height: 54px;
    border-radius: 14px;
  }

  .input-wrap input {
    height: 52px;
    font-size: 0.96rem;
  }

  .btn {
    min-height: 52px;
    border-radius: 14px;
  }
}

@media (max-width: 1080px) {
  .brand-illustration-wrap {
    min-height: 360px;
  }

  .brand-illustration {
    height: 360px;
    max-height: 360px;
    transform: translateY(-22px) scale(1.1);
  }
}

@media (max-width: 768px) {
  .brand-illustration-wrap {
    margin-top: 4px;
    min-height: 330px;
  }

  .brand-illustration {
    height: 340px;
    max-height: 340px;
    transform: translateY(-24px) scale(1.08);
  }
}

@media (max-width: 480px) {
  .brand-illustration-wrap {
    min-height: 300px;
  }

  .brand-illustration {
    height: 310px;
    max-height: 310px;
    transform: translateY(-20px) scale(1.06);
  }
}

.form-message {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-message.error {
  color: #dc2626;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.form-message.success {
  color: #15803d;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.btn.is-loading {
  opacity: 0.8;
  cursor: wait;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.toast {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  color: #0f7a38;
  border-color: rgba(34, 197, 94, 0.25);
  background: #ecfdf3;
}

.toast-error {
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.25);
  background: #fff1f1;
}

.toast-info {
  color: #175cd3;
  border-color: rgba(37, 99, 235, 0.25);
  background: #eff6ff;
}

button.is-loading {
  cursor: wait;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dfe7f3;
  --line-strong: #cfd8e6;

  --text: #111b34;
  --text-soft: #667085;

  --blue: #2f69ff;
  --blue-dark: #1f4fe0;
  --green: #10d364;
  --green-dark: #08bc57;

  --primary-gradient: linear-gradient(90deg, #2f69ff 0%, #14d45f 100%);
  --shadow-lg: 0 24px 60px rgba(25, 52, 100, 0.12);
  --shadow-md: 0 12px 30px rgba(30, 64, 175, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 105, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 211, 100, 0.07), transparent 22%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.welcome-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.welcome-container {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.brand-panel {
  padding: 42px 34px 30px;
  background:
    radial-gradient(circle at 18% 24%, rgba(47, 105, 255, 0.08), transparent 20%),
    radial-gradient(circle at 85% 18%, rgba(16, 211, 100, 0.10), transparent 15%),
    linear-gradient(180deg, #fafdff 0%, #f3f8ff 100%);
  border-right: 1px solid rgba(225, 232, 242, 0.9);
  display: flex;
  flex-direction: column;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #2467ff;
}

.brand-copy h2 {
  margin: 0 0 10px;
  font-size: 2.15rem;
  line-height: 1.15;
  font-weight: 800;
}

.brand-copy h2 span {
  color: var(--blue);
}

.brand-copy p {
  margin: 0;
  max-width: 480px;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.brand-illustration-wrap {
  margin-top: 10px;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.brand-illustration {
  width: auto;
  max-width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: contain;
  transform: translateY(-28px) scale(1.12);
}

.features-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.bank-icon {
  color: var(--blue);
  background: rgba(47, 105, 255, 0.1);
}

.shield-icon {
  color: #2459ff;
  background: rgba(36, 89, 255, 0.1);
}

.growth-icon {
  color: var(--green-dark);
  background: rgba(16, 211, 100, 0.12);
}

.feature-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.brand-footer {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.brand-footer a {
  font-weight: 700;
}

.auth-panel {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.auth-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 18px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  position: relative;
  padding: 14px 4px 16px;
  color: #8a94a6;
  font-weight: 700;
  transition: 0.25s ease;
}

.tab-btn.active {
  color: var(--blue);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(19, 57, 116, 0.06);
  padding: 26px;
  min-height: 560px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
}

.auth-card-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.93rem;
  font-weight: 700;
  color: #475467;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-wrap:focus-within {
  border-color: rgba(47, 105, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 105, 255, 0.08);
}

.input-icon {
  width: 48px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #667085;
  flex-shrink: 0;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-prefix {
  padding: 0 14px 0 16px;
  color: #344054;
  font-weight: 700;
  border-right: 1px solid var(--line);
  margin-right: 8px;
}

.input-wrap input {
  width: 100%;
  height: 56px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0 16px 0 0;
}

.toggle-password {
  width: 48px;
  height: 48px;
  color: #667085;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-links-right {
  justify-content: flex-end;
}

.secondary-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
}

.btn {
  min-height: 56px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 12px 24px rgba(47, 105, 255, 0.2);
}

.switch-text {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.inline-tab-link {
  color: var(--blue);
  font-weight: 800;
  padding: 0;
  margin-left: 4px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -4px;
}

.check-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.check-row label {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.check-row a {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .welcome-container {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    border-right: none;
    border-bottom: 1px solid rgba(225, 232, 242, 0.9);
  }

  .auth-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .welcome-shell {
    padding: 14px;
  }

  .welcome-container {
    border-radius: 24px;
  }

  .brand-panel,
  .auth-panel {
    padding: 22px 18px;
  }

  .brand-header {
    justify-content: center;
    text-align: center;
  }

  .brand-copy {
    text-align: center;
  }

  .brand-copy h2 {
    font-size: 1.8rem;
  }

  .brand-copy p {
    font-size: 0.98rem;
    margin: 0 auto;
  }

  .features-card {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px;
  }

  .feature-icon {
    margin: 0;
  }

  .auth-tabs {
    justify-content: center;
    gap: 22px;
  }

  .auth-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .auth-card-header h2 {
    font-size: 1.65rem;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .welcome-shell {
    padding: 10px;
  }

  .welcome-container {
    border-radius: 20px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .brand-copy h2 {
    font-size: 1.55rem;
  }

  .auth-tabs {
    gap: 16px;
  }

  .tab-btn {
    font-size: 0.95rem;
  }

  .auth-card-header h2 {
    font-size: 1.45rem;
  }

  .auth-card-header p,
  .switch-text,
  .secondary-link,
  .brand-footer,
  .check-row label {
    font-size: 0.9rem;
  }

  .input-wrap {
    min-height: 54px;
    border-radius: 14px;
  }

  .input-wrap input {
    height: 52px;
    font-size: 0.96rem;
  }

  .btn {
    min-height: 52px;
    border-radius: 14px;
  }
}

@media (max-width: 1080px) {
  .brand-illustration-wrap {
    min-height: 360px;
  }

  .brand-illustration {
    height: 360px;
    max-height: 360px;
    transform: translateY(-22px) scale(1.1);
  }
}

@media (max-width: 768px) {
  .brand-illustration-wrap {
    margin-top: 4px;
    min-height: 330px;
  }

  .brand-illustration {
    height: 340px;
    max-height: 340px;
    transform: translateY(-24px) scale(1.08);
  }
}

@media (max-width: 480px) {
  .brand-illustration-wrap {
    min-height: 300px;
  }

  .brand-illustration {
    height: 310px;
    max-height: 310px;
    transform: translateY(-20px) scale(1.06);
  }
}

.form-message {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-message.error {
  color: #dc2626;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.form-message.success {
  color: #15803d;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.btn.is-loading {
  opacity: 0.8;
  cursor: wait;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.toast {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  color: #0f7a38;
  border-color: rgba(34, 197, 94, 0.25);
  background: #ecfdf3;
}

.toast-error {
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.25);
  background: #fff1f1;
}

.toast-info {
  color: #175cd3;
  border-color: rgba(37, 99, 235, 0.25);
  background: #eff6ff;
}

button.is-loading {
  cursor: wait;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* =====================================================
   Registro Web - selector de prefijo telefónico
   ===================================================== */
.input-prefix.phone-prefix-select {
  width: 88px;
  min-width: 88px;
  height: 56px;
  padding: 0 30px 0 16px;
  margin-right: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background-color: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.input-prefix.phone-prefix-select:focus {
  color: var(--primary);
}

.input-prefix.phone-prefix-select option {
  color: #101828;
  font-weight: 700;
}

#registerPhone {
  letter-spacing: 0.02em;
}

#registerPhone::placeholder {
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .input-prefix.phone-prefix-select {
    width: 82px;
    min-width: 82px;
    padding-left: 12px;
    padding-right: 28px;
    font-size: 0.95rem;
  }
}
