* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

:root {
  --bg: #07111f;
  --panel: rgba(10, 20, 34, .88);
  --panel-soft: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .14);
  --text: #f5f7fb;
  --muted: #aab4c3;
  --accent: #2f80ed;
  --accent-2: #22c55e;
  --danger: #ef4444;
  --shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(7, 17, 31, .96) 0%, rgba(7, 17, 31, .82) 48%, rgba(6, 24, 42, .88) 100%),
    url(../../img/3.jpg) center/cover no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent);
}

.auth {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-shell {
  width: min(1060px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 430px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 31, .62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(47, 128, 237, .2), rgba(34, 197, 94, .08)),
    rgba(255, 255, 255, .04);
  border-right: 1px solid var(--line);
}

.brand-mark,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

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

.brand-logo strong {
  color: #fff;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.brand-mark span,
.mobile-brand span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: #dce6f5;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .06);
}

.operation-copy {
  max-width: 520px;
}

.eyebrow,
.form-kicker {
  color: #8fc5ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.operation-copy h2 {
  margin-top: 14px;
  font-size: clamp(1rem, 2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.operation-copy p:last-child {
  max-width: 490px;
  margin-top: 18px;
  color: #c4cfde;
  font-size: 1.02rem;
  line-height: 1.6;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-item {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.signal-item i {
  color: #9fd3ff;
  font-size: 1.55rem;
}

.signal-item span {
  color: #eef5ff;
  font-size: .9rem;
  font-weight: 700;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: var(--panel);
}

.mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.auth-header {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-title {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
}

.auth-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: .98rem;
}

.formulario {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  position: relative;
  width: 100%;
}

.formulario input {
  width: 100%;
  display: block;
  margin: 18px 0 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  outline: none;
  padding: 14px 46px 14px 14px;
  font-size: .96rem;
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.formulario input::placeholder {
  color: rgba(229, 236, 247, .66);
}

.formulario input:focus {
  border-color: rgba(47, 128, 237, .85);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, .16);
}

.helper {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-23%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #dce6f5;
  font-size: 21px;
}

.toggle-pass:hover {
  color: #fff;
}

.caps {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #fbbf24;
  font-size: .86rem;
}

.caps.show {
  display: flex;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 13px 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #2f80ed);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: .68;
  cursor: not-allowed;
  transform: none;
}

.loading {
  opacity: .85;
  pointer-events: none;
}

.alert {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  margin: 12px 0;
  text-align: left;
  font-size: .9rem;
  line-height: 1.4;
}

.alert-danger {
  background: rgba(239, 68, 68, .16);
  border: 1px solid rgba(239, 68, 68, .42);
  color: #ffd8d8;
}

.auth-links {
  margin-top: 16px;
  text-align: center;
}

.link {
  color: #d7e5f6;
  text-decoration: none;
  font-size: .93rem;
}

.link:hover {
  color: #fff;
  text-decoration: underline;
}

.step-container {
  width: 100%;
  animation: fadeIn .32s ease-out;
}

.otp-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 18px;
}

.otp-input {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  min-height: 50px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.otp-input:focus {
  border-color: rgba(34, 197, 94, .9) !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .auth {
    padding: 20px;
    align-items: flex-start;
  }

  .auth-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .auth-card {
    padding: 30px 24px;
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 480px) {
  .auth {
    padding: 12px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-title {
    font-size: 1.7rem;
  }

  .mobile-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .otp-container {
    gap: 7px;
  }

  .otp-input {
    min-height: 43px;
    font-size: 1.15rem !important;
  }
}
