:root {
  color-scheme: light;
}

body.login-body {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  color: #1d1b17;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 167, 0.55), transparent 34%),
    radial-gradient(circle at top right, rgba(34, 34, 34, 0.34), transparent 30%),
    linear-gradient(180deg, #f8f4ec 0%, #f2efe8 100%);
  overflow-x: hidden;
}

#tsparticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.orb-left {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 90px;
  background: rgba(255, 197, 102, 0.4);
}

.orb-right {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 180px;
  background: rgba(24, 24, 24, 0.26);
}

.login-floating-shell {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: fit-content;
  max-width: calc(100% - 32px);
}

.login-menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(29, 27, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 18px 40px rgba(43, 33, 19, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-menu-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.login-brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.login-brand-text {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.login-menu-divider {
  width: 1px;
  height: 28px;
  background: rgba(29, 27, 23, 0.14);
}

.login-menu-badge,
.login-menu-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 17, 17, 0.04);
  color: #665d51;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.login-menu-tab {
  cursor: pointer;
}

.login-menu-tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 0 10px 24px rgba(43, 33, 19, 0.12);
}

.login-menu-tab:hover {
  transform: translateY(-1px);
}

.login-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 138px 0 56px;
  display: grid;
  align-items: center;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 34px;
}

.login-copy-card {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.login-kicker,
.login-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #876743;
}

.login-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.55rem, 5.3vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: #171410;
  max-width: 10ch;
}

.login-copy,
.login-box-copy,
.login-note-card span {
  margin: 0;
  color: #5b5145;
  line-height: 1.65;
}

.login-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.login-note-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 27, 23, 0.08);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.64);
  box-shadow: 0 18px 36px rgba(43, 33, 19, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-note-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: #171410;
}

.login-form {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.login-box {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(29, 27, 23, 0.08);
  border-radius: 30px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: 0 20px 46px rgba(43, 33, 19, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-auth-panel {
  display: grid;
  gap: 18px;
}

.login-auth-panel[hidden] {
  display: none;
}

.login-inline-note {
  margin: -6px 2px 0;
  color: #74675a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-inline-note strong {
  color: #876743;
  font-weight: 800;
}

.login-inline-note.is-success {
  color: #2f6b48;
}

.login-inline-note.is-success strong {
  color: #2f6b48;
}

.login-box-head {
  display: grid;
  gap: 8px;
}

.login-box h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  color: #171410;
}

.login-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.login-field[hidden],
.login-inline-note[hidden] {
  display: none;
}

.login-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #403a31;
}

.login-input-shell {
  position: relative;
}

.login-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(29, 27, 23, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #171410;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input-shell input {
  padding-right: 50px;
}

.login-password-input[type="password"] {
  letter-spacing: -0.04em;
}

.login-field input::placeholder {
  color: #8a8175;
}

.login-field input:focus {
  outline: none;
  border-color: rgba(23, 20, 16, 0.3);
  box-shadow: 0 0 0 3px rgba(23, 20, 16, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.login-field .login-error-bubble {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 2;
  max-width: 72%;
  padding: 0;
  color: #d11f1f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  pointer-events: auto;
}

.login-field .login-error-bubble[hidden] {
  display: none;
}

.login-field .login-error-link {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9d7a2b;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  pointer-events: auto;
  cursor: pointer;
}

.login-field input.is-invalid {
  border-color: rgba(220, 22, 22, 0.72);
  background: rgba(255, 227, 227, 0.98);
  box-shadow: 0 0 0 3px rgba(220, 22, 22, 0.16);
}

.login-field input.is-invalid:focus {
  border-color: rgba(220, 22, 22, 0.82);
  box-shadow: 0 0 0 3px rgba(220, 22, 22, 0.2);
  background: rgba(255, 235, 235, 1);
}

.login-field input[readonly] {
  background: rgba(245, 240, 232, 0.95);
  color: #6d6255;
  cursor: default;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b6b58;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.login-password-toggle:hover {
  background: rgba(23, 20, 16, 0.05);
  color: #171410;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-inline-link {
  justify-self: start;
  margin: -6px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a7a67;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.login-inline-link:hover {
  color: #5d5146;
}

.login-submit {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #171410;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.login-forgot-link {
  justify-self: start;
  margin: -2px 2px 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d6b58;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

.login-submit:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.icon-particle {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  opacity: 0.78;
  filter: saturate(0.82);
}

@media (max-width: 1100px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-copy-card,
  .login-form {
    max-width: 720px;
  }

  .login-form {
    justify-content: flex-start;
  }

  .login-box {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .login-page {
    width: min(100%, calc(100% - 24px));
    padding-top: 118px;
  }

  .login-note-grid {
    grid-template-columns: 1fr;
  }

  .login-title {
    max-width: 11ch;
  }
}

@media (max-width: 640px) {
  .login-floating-shell {
    top: 12px;
    left: 12px;
    transform: none;
    max-width: calc(100% - 24px);
  }

  .login-menu-pill {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .login-brand-text {
    font-size: 0.88rem;
  }

  .login-box {
    padding: 22px 20px;
  }
}
