/* ==========================================================================
   07-login.css  (7 de 18)
   Ecrã de login e registo (#loginView).
   Não reordenar: a ordem de carga (ver README.md) faz parte da cascata,
   por isso os ficheiros seguintes podem substituir regras dos anteriores.
   ========================================================================== */

#loginView,
#clientView {
  display: none;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.au {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  min-height: 100vh;
}

.au-side {
  background: linear-gradient(155deg,#0b2630,#0e4a5c 62%,#0ba5c7 140%);
  color: #eaf6f8;
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.au-side:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -160px;
  bottom: -140px;
  background: radial-gradient(circle,rgba(11,165,199,.35),transparent 70%);
}

.au-logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}

.au-logo.m {
  display: none;
  color: var(--amber);
  margin: 18px 0 4px;
}

.au-hero h2 {
  font-size: clamp(26px,3vw,38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 30px;
  max-width: 440px;
}

.au-hero ul {
  list-style: none;
  display: grid;
  gap: 18px;
  max-width: 420px;
}

.au-hero li {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #eaf6f8bf;
}

.au-hero li b {
  display: block;
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.au-hero li i {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #0ba5c740;
  color: #7fe0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
}

.au-foot {
  font: 12px IBM Plex Mono,monospace;
  color: #eaf6f88c;
  position: relative;
  z-index: 1;
}

.au-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 22px;
}

.au-box {
  width: 100%;
  max-width: 410px;
}

.lg-back {
  font: 12px IBM Plex Mono,monospace;
  color: var(--graphite);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 22px;
}

.lg-back:hover {
  color: var(--amber);
}

.au-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-10);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 26px;
}

.au-tabs button {
  border: 0;
  background: none;
  padding: 10px;
  border-radius: 9px;
  font: 600 13.5px inherit;
  font-family: inherit;
  color: var(--graphite);
  cursor: pointer;
  transition: all .15s;
}

.au-tabs button.on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px #0000001f;
}

.au-box h1 {
  font-size: 28px;
  letter-spacing: -.025em;
  margin-bottom: 6px;
}

.au-p {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.5;
  margin-bottom: 22px;
}

.fl {
  margin-bottom: 15px;
}

.fl label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.fl input,
.pw input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ink-20);
  background: var(--paper);
  color: var(--ink);
  font: 15px inherit;
  font-family: inherit;
  transition: border-color .15s,box-shadow .15s;
}

.fl input:focus {
  outline: 0;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-10);
}

.pw {
  position: relative;
}

.pw input {
  padding-right: 84px;
}

.pw button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--amber);
  font: 600 12px IBM Plex Mono,monospace;
  cursor: pointer;
  padding: 8px;
}

.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity .15s;
}

.meter.on {
  opacity: 1;
}

.meter b {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--ink-10);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width .25s,background .25s;
}

.meter span {
  font: 11px IBM Plex Mono,monospace;
  color: var(--graphite);
  min-width: 72px;
  text-align: right;
}

.au-ck {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--graphite);
  line-height: 1.45;
  margin: 4px 0 12px;
  cursor: pointer;
}

.au-ck input {
  width: 17px;
  height: 17px;
  accent-color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.au-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.au-box a[data-m],
#auForgot {
  color: var(--amber);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
}

.au-box a[data-m]:hover {
  text-decoration: underline;
}

.au-err {
  color: #c83c3c;
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.au-btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14.5px inherit;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s,opacity .15s;
}

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

.au-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.au-btn.load span:after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auSp .7s linear infinite;
}

.au-btn.ghost {
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink-20);
}

@keyframes auSp {
  to {
    transform: rotate(360deg);
  }
}

.au-alt {
  text-align: center;
  font-size: 13px;
  color: var(--graphite);
  margin-top: 20px;
}

#auDone {
  text-align: center;
  padding: 6px 0;
}

.au-ic {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--amber-10);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 4px auto 18px;
}

#auDone p {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.55;
  margin-bottom: 10px;
}

#auDone p b {
  color: var(--ink);
}

#auDone p.s {
  font-size: 12.5px;
  margin-bottom: 18px;
}

#auDone .au-back2 {
  display: block;
  margin-top: 18px;
  color: var(--amber);
  font-size: 13px;
  cursor: pointer;
}

.au-demo {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-10);
  font-size: 12px;
  line-height: 1.5;
  color: var(--graphite);
}

.au-demo b {
  color: var(--ink);
}

.au-demo code {
  font: 11.5px IBM Plex Mono,monospace;
  color: var(--amber);
}

@media(max-width:860px) {
  .au {
    grid-template-columns: 1fr;
  }
  .au-side {
    display: none;
  }
  .au-logo.m {
    display: block;
  }
  .au-main {
    align-items: flex-start;
    padding-top: 20px;
  }
}
