/* The existing compact form remains the mobile layout. */
.auth-showcase,
.auth-form-symbol {
  display: none;
}

@media screen and (min-width: 768px) {
  body.auth-redesign {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding: 40px 28px;
    background:
      radial-gradient(ellipse at 5% 10%, #cedaff 0, transparent 52%),
      radial-gradient(ellipse at 95% 95%, #d7ccef 0, transparent 52%),
      #eaf0fb;
  }

  body.auth-register {
    background:
      radial-gradient(circle at 12% 16%, #54739938 0 1.4px, transparent 1.8px) 0 0 / 12px 12px,
      radial-gradient(ellipse at 0 0, #183961, transparent 58%),
      radial-gradient(ellipse at 100% 100%, #142d58, transparent 55%),
      #070e23;
  }

  .auth-redesign .auth-shell {
    width: min(100%, 1120px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid #ffffffb3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px #142d5829, 0 4px 16px #142d580d;
  }

  .auth-redesign .auth-topbar {
    display: none;
  }

  .auth-redesign .auth-main {
    padding: 0;
    background: transparent;
  }

  .auth-redesign .install-alert {
    margin: 12px;
  }

  .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 640px;
  }

  .auth-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 38px;
    color: #fff;
    background: #0d2448;
  }

  .auth-login .auth-showcase {
    background-image:
      linear-gradient(180deg, #061e40a6 0%, #081e416b 36%, #071b38eb 68%, #061630 100%),
      url('../../auto1.png');
    background-size: cover;
    background-position: center, 62% center;
  }

  .auth-showcase-brand {
    display: block;
    align-self: flex-start;
    width: 185px;
    max-width: 85%;
  }

  .auth-showcase-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
  }

  .auth-showcase-heading {
    margin: 66px 0 40px;
  }

  .auth-eyebrow {
    margin: 0 0 20px;
    color: #d6e7ff;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .17em;
    line-height: 1.6;
  }

  .auth-showcase h2 {
    margin: 0;
    max-width: 390px;
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.14;
    letter-spacing: -.045em;
    font-weight: 750;
    text-wrap: balance;
  }

  .auth-showcase h2 span {
    display: block;
    margin-top: 8px;
    color: #b4d6ff;
  }

  .auth-carousel {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #ffffff30;
  }

  .auth-slides {
    display: grid;
  }

  .auth-slide {
    grid-area: 1 / 1;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease, visibility .4s;
  }

  .auth-slide.is-active {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .auth-slide-label {
    margin: 0 0 12px;
    color: #b8d8ff;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .auth-slide h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -.025em;
    font-weight: 650;
    text-wrap: balance;
  }

  .auth-slide-description {
    margin: 0;
    color: #d5e2f6;
    font-size: 13px;
    line-height: 1.75;
  }

  .auth-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
  }

  .auth-carousel-controls[hidden] {
    display: none;
  }

  .auth-carousel-dots,
  .auth-carousel-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .auth-carousel-controls button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: transparent;
    transition: background-color .2s;
  }

  .auth-carousel-controls button:hover {
    background: #ffffff20;
  }

  .auth-showcase a:focus-visible,
  .auth-carousel-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
  }

  .auth-carousel-controls svg {
    width: 17px;
    height: 17px;
  }

  .auth-carousel-controls .auth-carousel-dot {
    width: 22px;
    border: 0;
    border-radius: 6px;
  }

  .auth-carousel-dot span {
    width: 6px;
    height: 6px;
    border-radius: 8px;
    background: #ffffff66;
    transition: width .2s, background-color .2s;
  }

  .auth-carousel-dot[aria-current="true"] span {
    width: 20px;
    background: #fff;
  }

  .auth-play-icon,
  .is-paused .auth-pause-icon {
    display: none;
  }

  .is-paused .auth-play-icon {
    display: block;
  }

  .auth-redesign .auth-panel {
    align-self: center;
    min-width: 0;
    padding: 48px clamp(28px, 5vw, 70px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .auth-form-symbol {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border: 1px solid #dfe9fa;
    border-radius: 18px;
    background: linear-gradient(145deg, #f6f9ff, #eaf2ff);
    color: #2563ce;
  }

  .auth-form-symbol svg {
    width: 25px;
    height: 25px;
  }

  .auth-redesign .auth-panel h1 {
    margin-bottom: 10px;
    color: #172b4d;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -.035em;
  }

  .auth-redesign .auth-panel > p {
    margin-bottom: 28px;
    color: #6a7890;
    line-height: 1.65;
  }

  .auth-redesign .form-grid {
    gap: 18px;
  }

  .auth-redesign .form-row label {
    color: #43536c;
    font-size: 12px;
    font-weight: 600;
  }

  .auth-redesign .form-control {
    min-height: 50px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #fbfcff;
    font-size: 15px;
    box-shadow: 0 2px 3px #16315903;
  }

  .auth-redesign .form-control:focus {
    border-color: #3f80ef;
    background: #fff;
    box-shadow: 0 0 0 4px #0868f21a;
  }

  .auth-redesign .form-actions {
    margin-top: 6px;
  }

  .auth-redesign .primary-btn,
  .auth-redesign .auth-create-link {
    width: 100%;
    min-height: 49px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
  }

  .auth-redesign .primary-btn {
    background: linear-gradient(110deg, #176de5, #2459d5);
    box-shadow: 0 5px 14px #2459d525;
  }

  .auth-redesign .primary-btn:hover {
    background: #144fbf;
  }

  .auth-redesign .auth-panel > .auth-switch {
    margin: 22px 0 0;
    font-size: 12px;
  }

  .auth-redesign .auth-switch a {
    font-weight: 650;
  }

  .auth-redesign .auth-panel > .auth-forgot {
    margin-top: 16px;
    text-align: right;
  }

  .auth-redesign .auth-panel > .auth-create {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e6ecf5;
  }

  .auth-redesign .auth-create-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    border: 1px solid #ccdcf5;
    background: #eef5ff;
    color: #1c59ba;
  }

  .auth-redesign .auth-create-link:hover {
    border-color: #80a9eb;
    background: #e5efff;
  }

  .auth-register .auth-shell {
    padding: 12px;
    box-shadow: 0 32px 100px #0005;
  }

  .auth-register .auth-layout {
    min-height: 692px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .auth-register .auth-showcase {
    border-radius: 16px;
    background: radial-gradient(ellipse at 15% 10%, #4795ff 0, transparent 60%), linear-gradient(150deg, #2673f5, #184dcc 75%);
    padding: 32px 34px 0;
  }

  .auth-register .auth-showcase-heading {
    margin: 36px 0 0;
  }

  .auth-register .auth-eyebrow {
    margin-bottom: 12px;
  }

  .auth-register .auth-showcase h2 {
    font-size: clamp(28px, 2.8vw, 37px);
  }

  .auth-register .auth-showcase h2 span {
    margin-top: 3px;
    color: #d3e5ff;
  }

  .auth-register .auth-carousel {
    margin: auto -34px 0;
    padding: 24px 34px;
    border-top: 1px solid #ffffff24;
    background: linear-gradient(135deg, #ffffff21, #082c813d);
  }

  .auth-register .auth-panel {
    padding: 32px clamp(28px, 4.5vw, 64px);
  }

  .auth-register .auth-form-symbol {
    margin-bottom: 20px;
    border-radius: 50%;
  }

  .auth-register .form-grid {
    gap: 14px;
  }

  .auth-network {
    position: relative;
    min-height: 230px;
    width: 100%;
    max-width: 360px;
    flex: 1;
    margin: 10px auto 18px;
  }

  .auth-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 245px;
    height: 205px;
    border: 1px solid #d1e6ff45;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
  }

  .auth-orbit-inner {
    width: 192px;
    height: 192px;
    border-style: dashed;
    border-color: #d1e6ff35;
    transform: translate(-50%, -50%);
  }

  .auth-vehicle-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 164px;
    height: 164px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #c7e8ff88;
    background: radial-gradient(circle at 25% 15%, #b8e6ff80, #9dcbff12 70%);
    box-shadow: inset 0 0 24px #c7e8ff26, 0 16px 40px #08349533;
  }

  .auth-vehicle-core svg {
    width: 128px;
    height: 96px;
    color: #e5f5ff;
  }

  .auth-vehicle-core span {
    font-size: 10px;
    letter-spacing: .12em;
    color: #deeeff;
  }

  .auth-network-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ffffffb3;
    border-radius: 12px;
    background: #f5faff;
    box-shadow: 0 8px 24px #07358e33;
    color: #275ca7;
    font-size: 11px;
    font-weight: 650;
  }

  .auth-network-card svg {
    width: 22px;
    height: 22px;
  }

  .auth-network-card i {
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: #3cba95;
  }

  .auth-network-projects {
    top: 7%;
    left: 0;
    transform: rotate(-7deg);
  }

  .auth-network-photos {
    right: -4px;
    top: 29%;
    transform: rotate(7deg);
  }

  .auth-network-parts {
    bottom: 2%;
    left: 12%;
    transform: rotate(-4deg);
  }
}

@media screen and (min-width: 900px) {
  .auth-register .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-register .form-grid > * {
    grid-column: 1 / -1;
  }

  .auth-register .form-grid > .auth-name {
    grid-column: auto;
  }
}

@media screen and (min-width: 900px) and (max-height: 820px) {
  body.auth-redesign {
    padding-block: 16px;
  }

  .auth-login .auth-panel {
    padding-block: 32px;
  }
}

@media screen and (min-width: 768px) and (max-width: 899px) {
  body.auth-redesign {
    padding: 24px;
  }

  .auth-showcase {
    padding: 28px;
  }

  .auth-showcase-heading {
    margin-top: 54px;
  }

  .auth-register .auth-showcase {
    padding: 28px 24px 0;
  }

  .auth-register .auth-carousel {
    margin-inline: -24px;
    padding: 22px 24px;
  }

  .auth-register .auth-panel {
    padding-inline: 24px;
  }

  .auth-register .auth-slide h3 {
    font-size: 19px;
  }

  .auth-network-card {
    padding: 10px;
    gap: 6px;
    font-size: 10px;
  }

  .auth-network-card i {
    display: none;
  }

  .auth-orbit-outer {
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-slide,
  .auth-carousel-controls button,
  .auth-carousel-dot span {
    transition: none;
    transform: none;
  }
}
