/* Login page extension for the landing design */

.auth-body {
  background: var(--white);
}

.auth-nav {
  box-shadow: none;
}

.auth-login {
  position: relative;
  min-height: calc(100vh - 68px);
  padding: 82px 0 88px;
  overflow: hidden;
  background: var(--white);
}

.auth-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 68px;
  align-items: center;
}

.auth-copy {
  max-width: 620px;
}

.auth-copy h1 {
  margin-bottom: 1.25rem;
}

.auth-sub {
  max-width: 54ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.auth-mini-panel {
  max-width: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r12);
  background: var(--white);
  box-shadow: var(--sh2);
}

.auth-mini-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.auth-mini-body strong {
  display: block;
  max-width: 28ch;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.auth-card.panel-copy {
  position: relative;
  top: auto;
  width: min(100%, 440px);
  margin-left: auto;
  padding: 2rem;
}

.auth-card h2 {
  margin-bottom: .65rem;
}

.auth-card > p {
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.auth-success-banner,
.auth-error {
  margin-bottom: 1rem;
  padding: .75rem .9rem;
  border-radius: var(--r4);
  font-size: .875rem;
  font-weight: 600;
}

.auth-success-banner {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.auth-error {
  margin-top: 1rem;
  border: 1px solid var(--rose-bd);
  background: var(--rose-lt);
  color: var(--rose);
}

.demo-login-list {
  display: grid;
  gap: .85rem;
  margin: 1.35rem 0 1.25rem;
}

.demo-login-box {
  margin: 1.35rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--indigo-bd);
  border-radius: var(--r8);
  background: linear-gradient(135deg, var(--indigo-lt), #fff);
}

.demo-login-list .demo-login-box {
  margin: 0;
}

.demo-login-box-admin {
  border-color: rgba(15,23,42,.28);
  background: linear-gradient(135deg, #eef2ff, #fff 68%);
}

.demo-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: .55rem;
}

.demo-label {
  display: block;
  color: var(--indigo);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: .15rem .5rem;
  border: 1px solid rgba(79,70,229,.18);
  border-radius: var(--r4);
  background: #fff;
  color: var(--ink2);
  font-size: .72rem;
  font-weight: 700;
}

.demo-description,
.demo-readonly-note {
  margin: 0 0 .65rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.demo-readonly-note {
  margin: .65rem 0 0;
  padding: .55rem .65rem;
  border: 1px solid rgba(79,70,229,.16);
  border-radius: var(--r4);
  background: rgba(79,70,229,.06);
  color: var(--indigo);
  font-weight: 600;
}

.demo-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: .45rem 0;
  border-top: 1px solid rgba(79,70,229,.14);
  color: var(--muted);
  font-size: .84rem;
}

.demo-row:first-of-type {
  border-top: 0;
}

.demo-row span {
  font-weight: 600;
}

.demo-row code {
  color: var(--ink2);
  font: inherit;
  font-weight: 700;
  word-break: break-word;
}

.btn-demo-fill {
  width: 100%;
  justify-content: center;
  margin-top: .85rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.form-group label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  min-height: 48px;
  padding: .72rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r4);
  background: var(--white);
  color: var(--ink);
  font-size: .94rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--indigo-bd);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 46px;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r4);
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}

.toggle-pass:hover {
  background: var(--indigo-lt);
  color: var(--indigo);
}

.toggle-pass svg {
  width: 17px;
  height: 17px;
}

.demo-fill-status {
  min-height: 20px;
  color: var(--indigo);
  font-size: .82rem;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  justify-content: center;
}

.auth-help {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

.auth-help a {
  color: var(--indigo);
  font-weight: 600;
}

@media (max-width: 960px) {
  .auth-login {
    padding: 58px 0 70px;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .auth-copy,
  .auth-card.panel-copy {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .auth-nav .nav-ctas {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 580px) {
  .auth-login {
    padding: 42px 0 54px;
  }

  .auth-nav .nav-ctas .btn-ghost {
    display: none;
  }

  .auth-copy h1 {
    font-size: 2.55rem;
  }

  .auth-mini-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-mini-body .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-card.panel-copy {
    padding: 1.35rem;
  }

  .demo-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 420px) {
  .auth-nav .nav-inner {
    gap: 12px;
  }

  .auth-nav .brand-name img {
    width: min(220px, 58vw);
    max-height: 36px;
  }
}
