.v5-auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(0,194,184,.18),
      transparent 38%
    ),
    linear-gradient(145deg,#07182b,#102d49);
  color: #f4f9ff;
}

.v5-auth-card {
  width: min(100%, 440px);
  padding: clamp(24px,5vw,38px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(12,30,51,.93);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.v5-auth-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 32px;
}

.v5-auth-brand strong {
  font-size: 2rem;
  letter-spacing: .04em;
  color: #38d8ca;
}

.v5-auth-brand span {
  font-size: .86rem;
  color: #bacbdb;
}

.v5-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.v5-auth-description {
  color: #c5d2df;
  line-height: 1.55;
  margin: 0 0 25px;
}

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

.v5-auth-form label {
  display: grid;
  gap: 9px;
  font-size: .92rem;
  font-weight: 600;
}

.v5-auth-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #60768d;
  border-radius: 12px;
  background: #f7fbff;
  color: #14283a;
  font: inherit;
}

.v5-auth-form input:focus-visible,
.v5-auth-form button:focus-visible {
  outline: 3px solid #51cfc8;
  outline-offset: 2px;
}

.v5-auth-password {
  display: flex;
  align-items: center;
  position: relative;
}

.v5-auth-password input {
  padding-right: 78px;
}

.v5-auth-visibility {
  position: absolute;
  right: 8px;
  border: 0;
  background: transparent;
  color: #165a65;
  min-height: 38px;
  padding: 0 10px;
  cursor: pointer;
}

.v5-auth-message {
  min-height: 1.2em;
  margin: 0;
  color: #ffb7b7;
  font-size: .9rem;
}

.v5-auth-submit {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #20c9bb;
  color: #07262c;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.v5-auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

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

  .v5-auth-card {
    border-radius: 20px;
  }
}

/* V5 authenticated application shell integration */
[hidden] {
  display: none !important;
}

#v5-auth-root:empty {
  display: none;
}

.v5-logout-button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.v5-logout-button:hover {
  background: rgba(255,255,255,.13);
}

.v5-logout-button:focus-visible {
  outline: 3px solid #20c9bb;
  outline-offset: 3px;
}

.v5-logout-button:disabled {
  opacity: .65;
  cursor: wait;
}
