.ca-auth-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 6rem;
  background: var(--bg-white);
}

.ca-auth-section::before {
  content: "";
  position: absolute;
  width: 23rem;
  height: 23rem;
  top: 2rem;
  right: -11rem;
  border: 4.5rem solid rgba(232, 93, 4, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.ca-auth-layout {
  position: relative;
  align-items: center;
  min-height: 38rem;
}

.ca-auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34rem;
  padding: 2rem 3.5rem 2rem 1rem;
}

.ca-auth-visual::before {
  content: "";
  position: absolute;
  inset: 8% 12% 5% 2%;
  border-radius: 4rem 1.5rem 4rem 1.5rem;
  background-color: rgba(232, 93, 4, 0.055);
  transform: rotate(-2.5deg);
}

.ca-auth-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgba(38, 25, 84, 0.12));
}

.ca-auth-card {
  position: relative;
  width: 100%;
  max-width: 31rem;
  margin-left: auto;
  padding: 2rem;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 1.5rem 0.65rem 1.5rem 0.65rem;
  background: var(--bg-white-3);
  box-shadow: 0 1.5rem 3.5rem rgba(38, 25, 84, 0.11);
}

.ca-auth-card .ca-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: #e85d04;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-auth-card .ca-auth-eyebrow i {
  position: static;
  color: inherit;
  font-size: 0.72rem;
}

.ca-auth-card .ca-auth-title {
  margin: 0 0 0.6rem;
  color: var(--color-1);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ca-auth-card .ca-auth-subtitle {
  max-width: 39ch;
  margin: 0 0 1.45rem;
  color: var(--color-6);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ca-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
  padding: 0.32rem;
  border-radius: 0.85rem;
  background: rgba(110, 121, 138, 0.11);
}

.ca-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 0.62rem;
  color: var(--color-6);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ca-auth-tab i {
  position: static;
  color: currentColor;
}

.ca-auth-tab:hover {
  color: var(--color-1);
}

.ca-auth-tab[aria-selected="true"] {
  color: #e85d04;
  background: var(--bg-white-3);
  box-shadow: 0 0.35rem 0.85rem rgba(38, 25, 84, 0.09);
}

.ca-auth-tab:active {
  transform: translateY(1px);
}

.ca-auth-tab:focus-visible,
.ca-auth-card a:focus-visible,
.ca-auth-card button:focus-visible,
.ca-auth-card input:focus-visible {
  outline: 3px solid rgba(232, 93, 4, 0.24);
  outline-offset: 2px;
}

.ca-auth-panel[hidden] {
  display: none;
}

.ca-auth-panel.is-active {
  animation: ca-auth-panel-in 220ms ease both;
}

.ca-auth-field {
  margin-bottom: 1rem;
}

.ca-auth-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ca-auth-card .ca-auth-label {
  margin: 0;
  color: var(--color-1);
  font-size: 0.82rem;
  font-weight: 650;
}

.ca-auth-forgot {
  color: #e85d04;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.ca-auth-forgot:hover {
  color: #ba4a03;
  text-decoration: underline;
}

.ca-auth-input-wrap {
  position: relative;
}

.ca-auth-card .ca-auth-input-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 1rem;
  color: rgba(110, 121, 138, 0.75);
  transform: translateY(-50%);
}

.ca-auth-card .ca-auth-eye {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1rem;
  left: auto;
  color: rgba(110, 121, 138, 0.75);
  cursor: pointer;
  transform: translateY(-50%);
}

.ca-auth-card .ca-auth-input {
  min-height: 3.1rem;
  padding: 0.78rem 3rem 0.78rem 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  color: var(--color-1);
  background: rgba(110, 121, 138, 0.1);
  font-size: 0.9rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ca-auth-card .ca-auth-input:hover {
  background: rgba(110, 121, 138, 0.14);
}

.ca-auth-card .ca-auth-input:focus {
  border-color: rgba(232, 93, 4, 0.45);
  background: var(--bg-white-3);
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.09);
}

.ca-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 0.35rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid #e85d04;
  border-radius: 0.72rem;
  color: #fff;
  background: #e85d04;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 0.6rem 1.2rem rgba(232, 93, 4, 0.17);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ca-auth-submit i {
  position: static;
  color: currentColor;
}

.ca-auth-submit:hover {
  border-color: #cf5103;
  color: #fff;
  background: #cf5103;
  box-shadow: 0 0.75rem 1.5rem rgba(232, 93, 4, 0.21);
  transform: translateY(-1px);
}

.ca-auth-submit:active {
  box-shadow: 0 0.35rem 0.8rem rgba(232, 93, 4, 0.16);
  transform: translateY(1px);
}

.ca-auth-panel-copy {
  margin: -0.2rem 0 1rem;
  color: var(--color-6);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ca-auth-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid rgba(232, 93, 4, 0.72);
  border-radius: 0.15rem 0.55rem 0.55rem 0.15rem;
  color: var(--color-6);
  background: rgba(232, 93, 4, 0.07);
  font-size: 0.78rem;
  line-height: 1.5;
}

.ca-auth-note i {
  position: static;
  margin-top: 0.15rem;
  color: #e85d04;
}

.ca-auth-footer {
  margin-top: 1.45rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(30, 41, 59, 0.1);
  text-align: center;
}

.ca-auth-footer p {
  margin: 0;
  color: var(--color-6);
  font-size: 0.82rem;
}

.ca-auth-footer a {
  margin-left: 0.3rem;
  color: #e85d04;
  font-weight: 700;
  text-decoration: none;
}

.ca-auth-footer a:hover {
  text-decoration: underline;
}

.ca-auth-social {
  margin-top: 1rem;
}

.ca-auth-social .btn {
  margin: 0;
}

.dark-theme .ca-auth-card {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.22);
}

.dark-theme .ca-auth-tabs,
.dark-theme .ca-auth-card .ca-auth-input {
  background: rgba(255, 255, 255, 0.07);
}

.dark-theme .ca-auth-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@keyframes ca-auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .ca-auth-section {
    padding: 2.75rem 0 4rem;
  }

  .ca-auth-layout {
    min-height: auto;
  }

  .ca-auth-visual {
    display: none;
  }

  .ca-auth-card {
    max-width: 34rem;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .ca-auth-section {
    padding: 1.5rem 0 3rem;
  }

  .ca-auth-section::before {
    top: -7rem;
    right: -14rem;
  }

  .ca-auth-card {
    padding: 1.35rem;
    border-radius: 1.2rem 0.5rem 1.2rem 0.5rem;
  }

  .ca-auth-card .ca-auth-title {
    font-size: 1.75rem;
  }

  .ca-auth-card .ca-auth-subtitle {
    margin-bottom: 1.15rem;
  }

  .ca-auth-tab {
    min-height: 2.7rem;
    padding-inline: 0.45rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-auth-panel.is-active {
    animation: none;
  }

  .ca-auth-tab,
  .ca-auth-submit,
  .ca-auth-card .ca-auth-input {
    transition: none;
  }
}
