canvas {
  position: absolute;
  width: 100%;
  height: 960px;
  margin: 0;
  padding: 0;
}

input:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0px 100vw rgb(23, 23, 23);
  -webkit-text-fill-color: var(--text);
}
input:-moz-autofill {
  color: var(--text);
}
input:-ms-autofill {
  color: var(--text);
}
input:-ms-input-placeholder {
  color: var(--text3);
}

.log-login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.log-login-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background-color: var(--card);
  color: var(--text);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  margin: 0 auto;
  padding: 45px;
}

.main-login-form-container {
  width: 380px;
  max-width: 442px;
  color: var(--text);
  position: relative;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  margin: 0;
}

.main-login-form-container.active {
  transform: translateY(0);
  opacity: 1;
}

.log-login-title {
  color: var(--text);
  text-align: center;
  width: 100%;
  margin-top: 0px;
  font-size: 30px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 10px;
}

.log-login-description {
  color: var(--text2);
  text-align: center;
  margin-bottom: 30px;
  font-size: 13px;
  padding: 0;
  margin-top: 0;
}

.log-close-login-button {
  position: absolute;
  top: 19px;
  right: 19px;
  font-size: 29px;
  cursor: pointer;
  color: var(--text3);
  transition: color 0.3s ease;
}

.log-close-login-button:hover {
  color: var(--text-hover);
}

.log-login-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  margin-top: -4px;
}

.log-forgot-password,
.log-sign-up {
  flex: 0 0 auto;
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.log-forgot-password:hover,
.log-sign-up:hover {
  color: var(--text);
}

.log-login-container input[type='submit'] {
  padding: 15px 19px;
  background-color: var(--background4);
  color: var(--text);
  font-weight: 500;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  margin-top: 16px;
  width: 100%;
}

.log-login-container input[type='submit']:hover {
  background-color: var(--background3);
}

.log-login-container input[type='submit']:active {
  opacity: 0.6;
}

.log-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  margin: 20px 0;
}

.log-divider::before,
.log-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.log-divider span {
  padding: 0 14px;
}

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: #f5f5f5;
  color: #3c4043;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.google-signin-btn:hover {
  background-color: #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.error-banner {
  background-color: rgba(255, 0, 0, 0.16);
  border: 1.5px solid rgba(255, 0, 0, 0.55);
  color: var(--text);
  padding: 12px;
  text-align: center;
  width: 100%;
  margin: 16px auto 0 auto;
  border-radius: 12px;
  font-size: 14px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--card2);
  border-radius: 10px;
  position: relative;
}

.input-wrapper i {
  color: var(--text);
  font-size: 17px;
  height: 50px;
  width: 50px;
  border-radius: 10px 0 0 10px;
  text-align: center;
  align-content: center;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 0px;
  width: 56px;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text3);
  height: 40px;
  min-height: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
}

.password-wrapper input {
  padding-right: 55px !important;
}

.input-wrapper input[type='text'],
.input-wrapper input[type='password'],
.input-wrapper input[type='email'],
.input-wrapper input[type='date'],
.input-wrapper select {
  flex: 1;
  padding: 5px 0px;
  border: none;
  background-color: var(--card2);
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  border-radius: 0 0px 0px 0;
  outline: none;
}

.input-wrapper input[type='text']::placeholder,
.input-wrapper input[type='password']::placeholder,
.input-wrapper input[type='email']::placeholder {
  color: var(--text3);
}

input[type='date']::-webkit-calendar-picker-indicator {
  display: none;
}

input[type='date'] {
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5em;
}

.qr-grid {
  gap: 19px;
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  margin: 44px 0px;
}

#qrcode-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 27px;
  padding: 17px;
  overflow: hidden;
  box-shadow: 0 17px 46px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
}

#qrcode-wrap::before {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 21px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

#qrcode {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode canvas,
#qrcode img {
  width: 100% !important;
  height: 100% !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 19px;
  backdrop-filter: blur(4px);
}

.modal {
  max-width: 672px;
  width: 100%;
  background: var(--card2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  overflow: hidden;
  font-family: Fredoka;
  color: var(--text);
  box-shadow: 0 19px 61px rgba(0, 0, 0, 0.45);
}

.modal-body {
  padding: 23px;
}

.qr-modal-title {
  margin: 0 0 11px;
  font-size: 22px;
  text-align: center;
}

.qr-modal-desc {
  margin: 0 0 18px;
  opacity: 0.85;
  line-height: 1.35;
  font-size: 16px;
  text-align: center;
}

.qr-btnrow {
  display: flex;
  gap: 19px;
  margin-top: 21px;
}

.qr-btnrow-single {
  justify-content: center;
}

.qr-btnrow-split {
  justify-content: space-between;
}

.qr-btn {
  flex: 1;
  border: 0;
  border-radius: 18px;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
}

.qr-btn:hover {
  transform: translateY(-2px);
}
.qr-btn:active {
  transform: translateY(0);
  opacity: 0.92;
}

.qr-btn-primary {
  background: #353535;
  color: var(--text);
}
.qr-btn-ghost {
  background: rgb(63 63 63 / 8%);
  color: var(--text);
}

.acc-card {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  margin-top: 17px;
}

.acc-banner {
  height: 127px;
  background: var(--background4) center/cover no-repeat;
}

.acc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65));
}

.acc-info {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 17px;
  margin-top: -31px;
  position: relative;
}

.acc-pic {
  width: 69px;
  height: 69px;
  border-radius: 19px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--card);
}

.acc-name {
  font-size: 21px;
  line-height: 1.1;
}
.acc-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

.qr-loader-container {
  height: 163px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-loader {
  color: var(--text);
  position: relative;
  font-size: 12px;
  background: var(--text);
  animation: escaleY 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
  animation-delay: -0.16s;
  border-radius: 0.6em;
}
.qr-loader:before,
.qr-loader:after {
  content: '';
  position: absolute;
  top: 0;
  left: 2em;
  background: var(--text);
  width: 1em;
  height: 4em;
  animation: escaleY 1s infinite ease-in-out;
  border-radius: 0.6em;
}
.qr-loader:before {
  left: -2em;
  animation-delay: -0.32s;
}
@keyframes escaleY {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

.qr-m-body {
  margin: 0;
  background: var(--background2);
  color: var(--text);
  font-family:
    Fredoka,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

.qr-m-wrap {
  max-width: 345px;
  margin: 0 auto;
  padding: 23px 15px;
}

.qr-m-card {
  background: var(--card2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 15px;
}

.qr-m-head {
  margin-bottom: 12px;
}

.qr-m-title {
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.qr-m-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.35;
}

.qr-m-device {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 13px 0;
}

.qr-m-device-label {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 5px;
}
.qr-m-device-value {
  font-size: 15px;
}

.qr-m-acc {
  margin: 12px 0 10px 0;
}

.qr-m-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.qr-m-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.qr-m-btn-primary {
  background: #2f8cff;
  color: var(--text);
}
.qr-m-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.qr-m-pill {
  margin-top: 12px;
  padding: 11px;
  border-radius: 11px;
  font-size: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.qr-m-pill-ok {
  border-color: rgba(120, 255, 120, 0.25);
}
.qr-m-pill-warn {
  border-color: rgba(255, 120, 120, 0.25);
}

.qr-m-linkwrap {
  margin-top: 11px;
  text-align: center;
}
.qr-m-link {
  color: #2f8cff;
  text-decoration: none;
  font-size: 14px;
}

.qr-s-body {
  margin: 0;
  background: var(--background2);
  color: var(--text);
  font-family:
    Fredoka,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

.qr-s-wrap {
  max-width: 345px;
  margin: 0 auto;
  padding: 23px 15px;
}

.qr-s-card {
  background: var(--card2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 15px;
}

.qr-s-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.qr-s-note {
  opacity: 0.85;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.qr-s-btn {
  margin-top: 11px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.qr-s-reader {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.how-to-scan-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  background-color: var(--background2);
  border: 1px solid var(--background4);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.how-to-scan-btn:hover {
  background-color: var(--background3);
}

.how-to-scan-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-to-scan-chevron {
  transition: transform 0.2s ease;
  color: var(--text3);
}

.how-to-scan-chevron.rotated {
  transform: rotate(180deg);
}

.how-to-scan-content {
  overflow: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 12px 12px 28px;
  background-color: var(--background2);
  border: 1px solid var(--background4);
  border-radius: 14px;
  position: absolute;
  top: 445px;
  opacity: 0;
  transform: translateY(-5px);
}

.how-to-scan-content.open {
  opacity: 1;
  transform: translateY(0px);
}

.how-to-scan-content ol {
  margin: 0;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 90px;
}

.login-vertical-divider {
  position: relative;
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 48px;
  flex-shrink: 0;
}

.login-divider-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--background2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text2);
  font-size: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.qr-login-container {
  width: 320px;
  margin: 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
}

.qr-login-container h3 {
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  padding: 0;
  margin-bottom: 10px;
}

.qr-login-container p {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin-top: 0;
  max-width: 250px;
  margin: 0 auto;
}

.log-login-container .log-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 19px;
  background-color: var(--background4);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease,
    transform 0.18s ease;
  margin-top: 16px;
  width: 100%;
  min-height: 54px;
  touch-action: manipulation;
}
.log-login-container .log-submit-btn:hover {
  background-color: var(--background3);
}
.log-login-container .log-submit-btn:active {
  opacity: 0.68;
  transform: scale(0.995);
}
.log-login-container .log-submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}
