.auth-page-v1 {
  min-height: 100vh;
  padding: 28px clamp(16px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #f8ffed 0%, #e6f8dc 50%, #ddf6f6 100%);
  color: #203225;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

#app:has(.auth-page-v1) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.auth-page-v1)::before,
body:has(.auth-page-v1)::after,
body:has(.access-required-page)::before,
body:has(.access-required-page)::after {
  display: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
}

.auth-hero,
.auth-card,
.access-required-card {
  border: 2px solid rgba(86, 200, 0, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(68, 145, 33, 0.16), inset 0 -7px 0 rgba(74, 194, 0, 0.08);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 34px;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.auth-logo-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: linear-gradient(180deg, #6ee000, #31bd00);
  color: #fff;
  font-size: 30px;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

.auth-logo-row strong {
  display: block;
  color: #1d3222;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000;
}

.auth-logo-row span {
  display: block;
  margin-top: 5px;
  color: #39c800;
  font-size: 14px;
  font-weight: 1000;
}

.auth-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #172d20;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 1000;
}

.auth-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #54705c;
  font-size: 19px;
  line-height: 1.75;
  font-weight: 800;
}

.auth-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.auth-feature {
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid #e4f0de;
}

.auth-feature b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #e9f9df;
  color: #3ac600;
  font-size: 18px;
}

.auth-feature strong {
  display: block;
  margin-top: 12px;
  color: #203225;
  font-size: 17px;
  font-weight: 1000;
}

.auth-card {
  align-self: start;
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tabs button {
  min-height: 48px;
  border: 2px solid #d9edcf;
  border-radius: 999px;
  background: #fff;
  color: #526954;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.auth-tabs button.active {
  border-color: #56c800;
  background: #56d900;
  color: #fff;
}

.auth-card h2 {
  margin: 0 0 6px;
  color: #1d3324;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 1000;
}

.auth-card p {
  margin: 0 0 18px;
  color: #667765;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.auth-field label {
  color: #314532;
  font-size: 14px;
  font-weight: 1000;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 2px solid #dcebd5;
  border-radius: 16px;
  background: #fff;
  color: #1d3324;
  font-size: 17px;
  font-weight: 800;
  outline: none;
}

.auth-field input:focus {
  border-color: #42c700;
  box-shadow: 0 0 0 4px rgba(77, 214, 0, 0.16);
}

.auth-primary {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #58e400, #39c800);
  color: #fff;
  font-size: 19px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 7px 0 #229400, 0 14px 22px rgba(47, 166, 0, 0.24);
}

.auth-primary:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #229400;
}

.auth-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fff6d9;
  color: #9a5b00;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
}

.auth-local {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #edf4e8;
}

.auth-local summary {
  cursor: pointer;
  color: #637763;
  font-weight: 1000;
}

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

.auth-local-grid button {
  min-height: 40px;
  border: 1px solid #d9ead0;
  border-radius: 14px;
  background: #fff;
  color: #2b3d2f;
  font-weight: 900;
  cursor: pointer;
}

.access-required-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #f4ffe8, #d8f8c3);
}

.access-required-card {
  max-width: 620px;
  padding: 34px;
}

.access-badge {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffefe7;
  color: #ff543d;
  font-weight: 1000;
}

.access-required-card h1 {
  margin: 18px 0 10px;
  color: #1d3324;
  font-size: 42px;
  line-height: 1.1;
}

.access-required-card p {
  color: #536b59;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 800;
}

.access-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .auth-page-v1 {
    padding: 10px;
    overflow-x: hidden;
  }
  .auth-shell {
    gap: 12px;
    max-width: 100%;
  }
  .auth-shell > * {
    min-width: 0;
    max-width: 100%;
  }
  .auth-card {
    order: -1;
  }
  .auth-hero,
  .auth-card,
  .access-required-card {
    width: 100%;
    border-radius: 20px;
    padding: 18px;
  }
  .auth-hero {
    min-height: auto;
  }
  .auth-logo-row {
    margin-bottom: 22px;
  }
  .auth-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 24px;
  }
  .auth-logo-row strong {
    font-size: 24px;
  }
  .auth-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }
  .auth-hero p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
  }
  .auth-feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }
  .auth-feature {
    min-height: 74px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .auth-feature strong {
    margin-top: 0;
  }
  .auth-local-grid,
  .access-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
