.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 0.95fr);
  background: #f4f0e7;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 7vw, 90px);
  overflow: hidden;
  color: #fdfaf1;
  background: #26342e;
}
.auth-story:before,
.auth-story:after {
  position: absolute;
  content: "";
  border-radius: 50%;
  opacity: 0.24;
}
.auth-story:before {
  top: -150px;
  right: -100px;
  width: 430px;
  height: 430px;
  background: #d99779;
}
.auth-story:after {
  right: 15%;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 70px solid #758d79;
}
.auth-brand,
.auth-copy,
.auth-feature-list {
  position: relative;
  z-index: 1;
}
.auth-brand {
  font:
    700 25px Georgia,
    serif;
  letter-spacing: 3px;
}
.auth-copy h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font:
    500 clamp(44px, 6vw, 76px) / 1.08 Georgia,
    "Songti SC",
    serif;
}
.auth-copy p {
  color: #d8e0da;
}
.auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-feature-list span {
  padding: 8px 12px;
  border: 1px solid #ffffff38;
  border-radius: 20px;
  color: #e9eee9;
  font-size: 12px;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 35px;
  background: radial-gradient(circle at 100% 0, #e1e9dc, transparent 34%);
}
.auth-card {
  width: min(410px, 100%);
  padding: 36px;
  border: 1px solid #ddd8cb;
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 25px 70px #3b463d1c;
}
.auth-card h2 {
  margin: 0 0 8px;
  font:
    600 30px Georgia,
    "Songti SC",
    serif;
}
.auth-subtitle {
  margin: 0 0 26px;
  color: #768078;
  font-size: 13px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 12px;
  background: #efede6;
}
.auth-tabs button {
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #79827c;
  cursor: pointer;
}
.auth-tabs button.active {
  background: #fff;
  color: #26342e;
  box-shadow: 0 4px 12px #2b352e12;
}
.auth-field {
  display: block;
  margin: 14px 0;
  color: #5e6b63;
  font-size: 12px;
}
.auth-field input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #d9d5ca;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #25312c;
}
.auth-field input:focus {
  border-color: #718b75;
  box-shadow: 0 0 0 3px #718b7522;
}
.auth-submit {
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #26342e;
  color: #fff;
  cursor: pointer;
}
.auth-message {
  min-height: 20px;
  margin-top: 12px;
  color: #b66355;
  font-size: 12px;
}
.sync-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 20px;
  background: #ebe9e1;
  color: #667269;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.sync-chip:before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #718b75;
  content: "";
}
.sync-chip.offline:before {
  background: #d08b68;
}
.sync-chip.syncing:before {
  animation: syncPulse 0.8s infinite alternate;
  background: #e3b65d;
}
.account-menu {
  position: relative;
}
.account-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #dfe8dc;
  color: #314038;
  cursor: pointer;
}
.account-popover {
  position: absolute;
  top: 47px;
  right: 0;
  width: 210px;
  padding: 12px;
  border: 1px solid #ded9ce;
  border-radius: 13px;
  background: #fffdf8;
  box-shadow: 0 14px 38px #26342e25;
  z-index: 200;
}
.account-popover[hidden] {
  display: none;
}
.account-phone {
  padding: 6px 7px 11px;
  color: #5e6b63;
  font-size: 12px;
}
.account-popover button {
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #f0ede6;
  color: #9c5e50;
  cursor: pointer;
}
@keyframes syncPulse {
  to {
    transform: scale(1.55);
    opacity: 0.45;
  }
}
@media (max-width: 760px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 20px;
  }
  .sync-chip {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
