/* Public Razor pages only: Vristo boxed/cover composition, no demo runtime dependencies.
   Authenticated account pages keep account.css and never load this stylesheet. */
.auth-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 40px 24px;
  isolation: isolate;
  background: #d8eaff url("../images/auth/bg-tls-light.png") center / cover
    fixed no-repeat;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.auth-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.auth-decoration img {
  position: absolute;
}
.auth-bg-left {
  left: 0;
  top: 50%;
  height: min(100%, 893px);
  transform: translateY(-50%);
}
.auth-emphasis-top {
  top: 0;
  left: 30%;
  height: 160px;
}
.auth-bg-right {
  right: 0;
  top: 0;
  height: 300px;
}
.auth-emphasis-bottom {
  bottom: 0;
  right: 28%;
  max-width: 45%;
}
.auth-frame {
  width: 100%;
  max-width: 870px;
  margin-inline: auto;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(45deg, #fff9f9, #fff0 25%, #fff0 75%, #fff9f9);
}
.auth-card {
  position: relative;
  min-width: 0;
  border-radius: 6px;
  background: #ffffff99;
  backdrop-filter: blur(16px);
}
.auth-form-panel {
  position: relative;
  min-width: 0;
  padding: 100px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-content {
  width: 100%;
  max-width: 440px;
  margin: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.auth-page .auth-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4361ee;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.auth-heading > span {
  min-width: 0;
}
.auth-heading-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}
.auth-intro {
  color: #6c738a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 36px;
}
.auth-page h2 {
  font-size: 18px;
}
.auth-page form {
  margin: 24px 0;
}
.auth-page form > p {
  margin: 0;
}
.auth-page form br {
  display: none;
}
.auth-page label {
  font-size: 14px;
  font-weight: 600;
  color: #0e1726;
  margin-bottom: 6px;
}
.auth-page
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.auth-page select,
.auth-page textarea {
  display: block;
  width: 100%;
  height: 40px;
  padding: 9px 12px 9px 40px;
  margin: 8px 0 20px;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
  color: #0e1726;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888ea8' stroke-width='1.6'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/%3E%3C/svg%3E");
  background-position: 13px center;
  background-size: 18px;
  background-repeat: no-repeat;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-page input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888ea8' stroke-width='1.6'%3E%3Crect x='5' y='10' width='14' height='12' rx='2'/%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4m-4 4v4'/%3E%3C/svg%3E") !important;
}
.auth-page input[type="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888ea8' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E") !important;
}
.auth-page input[autocomplete="one-time-code"] {
  background-image: none !important;
  padding-inline: 12px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}
.auth-page input::placeholder,
.auth-page textarea::placeholder {
  color: #888ea8;
}
.auth-page select,
.auth-page textarea {
  background-image: none;
  padding-inline: 12px;
}
.auth-page textarea {
  height: auto;
  min-height: 90px;
}
.auth-page input:focus,
.auth-page select:focus,
.auth-page textarea:focus {
  border-color: #4361ee;
  outline: none;
  box-shadow: 0 0 0 3px #4361ee20;
}
.auth-page input[aria-invalid="true"] {
  border-color: #e7515a !important;
}
.auth-page input[type="checkbox"],
.auth-page input[type="radio"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 6px 0 0;
  accent-color: #4361ee;
}
.auth-page button:not([type="button"]),
.auth-page .button {
  width: 100%;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef1262, #4361ee);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px -10px #4361ee;
}
.auth-page button:not([type="button"]):hover,
.auth-page .button:hover {
  filter: brightness(1.06);
}
.auth-page .auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 24px 0;
}
.auth-page .auth-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
  color: #6c738a;
  font-weight: 600;
}
.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e6ed;
}
.auth-providers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.auth-providers form {
  margin: 0;
  max-width: 100%;
}
.auth-page .auth-provider-button {
  width: auto !important;
  background: #ffffffd9 !important;
  color: #3b3f5c !important;
  border: 1px solid #e0e6ed !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
}
.auth-provider-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-provider-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.auth-language {
  position: absolute;
  z-index: 2;
  right: 24px;
  top: 24px;
}
.auth-language summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #888ea84d;
  border-radius: 8px;
  background: white;
  color: #6c738a;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.auth-language summary::-webkit-details-marker {
  display: none;
}
.auth-language summary:focus-visible {
  outline: 3px solid #4361ee80;
  outline-offset: 3px;
}
.auth-language-flag {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-language-chevron {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  line-height: 0;
}
.auth-language-chevron svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.auth-language .auth-language-chevron-up,
.auth-language[open] .auth-language-chevron-down {
  display: none;
}
.auth-language[open] .auth-language-chevron-up {
  display: block;
}
.auth-language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 165px;
  padding: 6px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 4px 16px #0e172626;
}
.auth-language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  box-shadow: none;
  background: white;
  color: #6c738a;
  justify-content: start;
  padding: 8px 12px;
  cursor: not-allowed;
  opacity: 0.65;
}
.auth-page .auth-footer {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 0;
  color: #3b3f5c;
  font-size: 12px;
  line-height: 1.6;
}
.auth-cover-panel {
  display: none;
}
.auth-page
  .auth-form-content
  img:not(.auth-heading-logo):not(.auth-provider-button img) {
  max-width: 100%;
  height: auto;
}
@media (min-width: 1024px) {
  .auth-page {
    padding: 40px 64px;
  }
  .auth-card {
    min-height: 758px;
  }
  .auth-form-panel {
    min-height: 758px;
    padding-inline: 36px;
  }
  .auth-page--cover .auth-frame {
    max-width: 1502px;
    padding: 0;
    background: none;
  }
  .auth-page--cover .auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  .auth-page--cover .auth-heading {
    font-size: 24px;
  }
  .auth-page--cover .auth-heading-logo {
    display: none;
  }
  .auth-cover-panel {
    display: flex;
    position: relative;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 48px;
  }
  .auth-cover-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, #f1d5de, #4361ee);
  }
  .auth-cover-content {
    position: relative;
    width: 100%;
    max-width: 560px;
  }
  .auth-client-brand {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .auth-client-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex: 0 0 80px;
  }
  .auth-client-brand span {
    min-width: 0;
    font:
      600 36px/1.25 "Segoe UI",
      sans-serif;
    color: #2a2c74;
    opacity: 0.9;
    text-shadow: 2px 2px 4px #0003;
    overflow-wrap: anywhere;
  }
  .auth-cover-image {
    display: block;
    width: 100%;
    max-width: 430px;
    max-height: 430px;
    object-fit: contain;
    margin: 80px auto 0;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .auth-page {
    padding-inline: 24px;
  }
  /* Vristo's lg layout keeps the cover full-height with a 40px separator;
     only the illustration shrinks, not the background panel. */
  .auth-page--cover .auth-card {
    column-gap: 40px;
  }
  .auth-cover-panel {
    align-self: stretch;
    padding: 24px;
  }
  .auth-cover-panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -40px;
    width: 32px;
    background: linear-gradient(to right, #4361ee1a, transparent);
    pointer-events: none;
  }
  .auth-cover-image {
    max-height: 220px;
    margin-top: 32px;
  }
}
@media (min-width: 1280px) {
  .auth-page--cover .auth-card {
    grid-template-columns: 53% 47%;
  }
  .auth-cover-panel::before {
    left: -160px;
    right: 70px;
    transform: skewX(14deg);
    box-shadow: 16px 0 0 #ffffff30;
  }
  .auth-cover-panel {
    padding-right: 100px;
  }
}
@media (max-width: 600px) {
  .auth-page {
    padding: 20px 12px;
    background-attachment: scroll;
  }
  .auth-frame {
    padding: 4px;
  }
  .auth-form-panel {
    padding: 88px 20px 24px;
  }
  .auth-language {
    top: 20px;
    right: 20px;
  }
  .auth-intro {
    margin-bottom: 24px;
  }
  .auth-page .auth-heading {
    font-size: 36px;
  }
  .auth-page .auth-heading-logo {
    width: 46px;
    height: 46px;
  }
  .auth-bg-right {
    height: 180px;
  }
  .auth-emphasis-top {
    left: 20%;
    height: 100px;
  }
}
.auth-page .auth-heading--login {
  font-size: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .auth-page * {
    transition: none !important;
  }
}
