/*
 * RHK GLASS AI · V11.3.27
 * “艺术档案册”登录界面。仅负责视觉与响应式布局，不参与认证流程。
 */

.atelier-auth-page {
  --auth-brand: #078e91;
  --auth-brand-deep: #075f62;
  --auth-ink: #173436;
  --auth-muted: #718586;
  --auth-line: #d8e5e3;
  --auth-paper: #fbfcfa;
  --auth-wash: #edf3f1;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(7, 142, 145, .035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(7, 142, 145, .035) 1px, transparent 1px) 0 0 / 88px 88px,
    #f3f6f4;
  color: var(--auth-ink);
}

.atelier-auth-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .95), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(7, 142, 145, .08), transparent 27%);
  pointer-events: none;
}

.atelier-auth-page .auth-shell {
  width: min(1120px, calc(100% - 64px));
  max-width: 1120px;
  min-height: min(720px, calc(100vh - 80px));
  min-height: min(720px, calc(100dvh - 80px));
  margin: 40px auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 4px;
  background: rgba(251, 252, 250, .94);
  box-shadow: 0 28px 70px rgba(22, 56, 57, .1);
}

.atelier-auth-page .auth-editorial {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 44px 36px;
  background:
    linear-gradient(145deg, rgba(10, 78, 79, .99), rgba(7, 106, 108, .96) 58%, rgba(32, 139, 138, .86));
  color: #fff;
}

.atelier-auth-page .auth-editorial::before,
.atelier-auth-page .auth-editorial::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.atelier-auth-page .auth-editorial::before {
  width: 420px;
  height: 420px;
  right: -186px;
  top: 106px;
  border: 1px solid rgba(220, 245, 241, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(220, 245, 241, .06),
    0 0 0 124px rgba(220, 245, 241, .035);
}

.atelier-auth-page .auth-editorial::after {
  inset: 0;
  opacity: .28;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .08) 79px 80px);
}

.atelier-auth-page .auth-edition-head,
.atelier-auth-page .auth-edition-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.atelier-auth-page .auth-edition-head span:last-child,
.atelier-auth-page .auth-edition-foot span:last-child {
  color: rgba(224, 245, 242, .66);
}

.atelier-auth-page .auth-editorial-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: auto 0;
  padding: 58px 0 52px;
}

.atelier-auth-page .auth-editorial-number {
  display: block;
  margin-bottom: 20px;
  color: #a9d8d2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .24em;
}

.atelier-auth-page .auth-editorial h2 {
  max-width: 390px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -.055em;
}

.atelier-auth-page .auth-editorial-copy > p {
  max-width: 350px;
  margin: 19px 0 0;
  color: rgba(228, 244, 241, .76);
  font-size: 13px;
  line-height: 1.85;
}

.atelier-auth-page .auth-specimen {
  width: min(100%, 366px);
  margin-top: 34px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  border-top: 1px solid rgba(224, 244, 241, .22);
  padding-top: 16px;
}

.atelier-auth-page .auth-specimen b {
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
}

.atelier-auth-page .auth-specimen span {
  color: rgba(225, 243, 240, .62);
  font-size: 10px;
  line-height: 1.55;
}

.atelier-auth-page .auth-form-region {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 48px clamp(34px, 5vw, 64px);
  background: rgba(255, 255, 255, .82);
}

.atelier-auth-page .auth-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.atelier-auth-page .auth-brandline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--auth-line);
  padding-bottom: 22px;
}

.atelier-auth-page .brand,
.atelier-auth-page .auth-brand {
  color: var(--auth-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
}

.atelier-auth-page .brand b,
.atelier-auth-page .auth-brand b {
  margin-right: 7px;
  color: var(--auth-brand);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.08em;
}

.atelier-auth-page .brand-sub,
.atelier-auth-page .sub,
.atelier-auth-page .auth-brand-sub {
  margin-top: 4px;
  color: #829596;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.atelier-auth-page .auth-access-code {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--auth-brand-deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}

.atelier-auth-page .auth-title-block {
  margin: 35px 0 25px;
}

.atelier-auth-page .auth-title-block h1,
.atelier-auth-page .auth-title-block h3,
.atelier-auth-page .card h1 {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.atelier-auth-page .auth-title-block p,
.atelier-auth-page .card > p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.7;
}

.atelier-auth-page .auth-switch {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  margin: 0 0 22px;
  border: 1px solid #cfe1df;
  border-radius: 2px !important;
  background: #f1f7f5 !important;
  padding: 10px 13px !important;
  color: var(--auth-brand-deep) !important;
  text-align: left !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800 !important;
}

.atelier-auth-page .auth-switch::after {
  content: "\2192";
  font-size: 15px;
  font-weight: 400;
}

.atelier-auth-page form {
  margin: 0;
}

.atelier-auth-page label,
.atelier-auth-page .field label {
  margin: 15px 0 7px;
  color: #375557;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

.atelier-auth-page input,
.atelier-auth-page .field input {
  width: 100%;
  height: 48px;
  border: 1px solid #cbdad8;
  border-radius: 2px;
  background: rgba(255, 255, 255, .9);
  padding: 0 14px;
  color: var(--auth-ink);
  font-size: 15px;
  outline: 0;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.atelier-auth-page input::placeholder {
  color: #9babab;
}

.atelier-auth-page input:focus,
.atelier-auth-page .field input:focus {
  border-color: var(--auth-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 142, 145, .09);
}

.atelier-auth-page button,
.atelier-auth-page .login {
  min-height: 49px;
  border: 0;
  border-radius: 2px;
  background: var(--auth-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .16s, transform .16s, box-shadow .16s;
}

.atelier-auth-page form > button,
.atelier-auth-page .login {
  width: 100%;
  margin-top: 24px;
  box-shadow: 0 11px 24px rgba(7, 142, 145, .18);
}

.atelier-auth-page button:hover,
.atelier-auth-page .login:hover {
  background: var(--auth-brand-deep);
}

.atelier-auth-page button:active,
.atelier-auth-page .login:active {
  transform: translateY(1px);
}

.atelier-auth-page button:disabled,
.atelier-auth-page .login:disabled {
  cursor: wait;
  opacity: .58;
  box-shadow: none;
}

.atelier-auth-page .status {
  margin: 0 0 18px;
  border: 1px solid #d6e6e3;
  border-radius: 2px;
  background: #f2f7f5;
  padding: 11px 12px;
  color: #557274;
  font-size: 11px;
  line-height: 1.55;
}

.atelier-auth-page.atelier-auth-public .login + .status {
  margin-top: 12px;
}

.atelier-auth-page .gift {
  position: relative;
  margin: 0 0 22px;
  border: 0;
  border-left: 2px solid var(--auth-brand);
  border-radius: 0;
  background: #f1f6f4;
  padding: 12px 13px;
  color: #5d7475;
  font-size: 10px;
  line-height: 1.6;
}

.atelier-auth-page .gift b {
  color: var(--auth-brand-deep);
}

.atelier-auth-page .field {
  margin: 15px 0;
}

.atelier-auth-page .code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.atelier-auth-page .send {
  min-height: 48px;
  margin: 0;
  border: 1px solid #c8dfdc;
  background: #edf6f4;
  color: var(--auth-brand-deep);
  box-shadow: none;
  font-size: 11px;
}

.atelier-auth-page .send:hover {
  background: #dfeeed;
  color: var(--auth-brand-deep);
}

.atelier-auth-page .links,
.atelier-auth-page .auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border-top: 1px solid var(--auth-line);
  padding-top: 18px;
}

.atelier-auth-page .links a,
.atelier-auth-page .auth-links a {
  color: #61797a;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.atelier-auth-page .links a:hover,
.atelier-auth-page .auth-links a:hover {
  color: var(--auth-brand-deep);
}

.atelier-auth-page a:focus-visible,
.atelier-auth-page button:focus-visible,
.atelier-auth-page input:focus-visible {
  outline: 3px solid rgba(7, 142, 145, .22);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .atelier-auth-page .auth-shell {
    width: min(720px, calc(100% - 40px));
    min-height: 680px;
    grid-template-columns: minmax(240px, .72fr) minmax(390px, 1.28fr);
    margin: 28px auto;
  }

  .atelier-auth-page .auth-editorial {
    padding: 30px 26px;
  }

  .atelier-auth-page .auth-editorial h2 {
    font-size: 35px;
  }

  .atelier-auth-page .auth-editorial-copy > p {
    font-size: 11px;
  }

  .atelier-auth-page .auth-specimen {
    display: block;
  }

  .atelier-auth-page .auth-specimen b,
  .atelier-auth-page .auth-specimen span {
    display: block;
  }

  .atelier-auth-page .auth-specimen span {
    margin-top: 5px;
  }

  .atelier-auth-page .auth-form-region {
    padding: 42px 34px;
  }
}

@media (max-width: 680px) {
  .atelier-auth-page {
    background: #f7f9f7;
  }

  .atelier-auth-page .auth-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: block;
    overflow: visible;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .atelier-auth-page .auth-editorial {
    min-height: 174px;
    padding: max(23px, env(safe-area-inset-top)) 21px 23px;
  }

  .atelier-auth-page .auth-editorial::before {
    width: 250px;
    height: 250px;
    top: -42px;
    right: -76px;
    box-shadow: 0 0 0 40px rgba(220, 245, 241, .05);
  }

  .atelier-auth-page .auth-edition-head {
    font-size: 7px;
  }

  .atelier-auth-page .auth-editorial-copy {
    margin: 0;
    padding: 34px 0 0;
  }

  .atelier-auth-page .auth-editorial-number,
  .atelier-auth-page .auth-editorial-copy > p,
  .atelier-auth-page .auth-specimen,
  .atelier-auth-page .auth-edition-foot {
    display: none;
  }

  .atelier-auth-page .auth-editorial h2 {
    max-width: 290px;
    font-size: 28px;
    line-height: 1.18;
  }

  .atelier-auth-page .auth-form-region {
    display: block;
    padding: 27px 21px calc(27px + env(safe-area-inset-bottom));
  }

  .atelier-auth-page .auth-brandline {
    padding-bottom: 17px;
  }

  .atelier-auth-page .auth-title-block {
    margin: 25px 0 20px;
  }

  .atelier-auth-page .auth-title-block h1,
  .atelier-auth-page .auth-title-block h3,
  .atelier-auth-page .card h1 {
    font-size: 24px;
  }

  .atelier-auth-page .auth-switch {
    margin-bottom: 18px;
  }

  .atelier-auth-page .links,
  .atelier-auth-page .auth-links {
    margin-top: 20px;
    padding-bottom: 4px;
  }
}

@media (max-width: 370px) {
  .atelier-auth-page .auth-editorial {
    min-height: 150px;
  }

  .atelier-auth-page .auth-editorial-copy {
    padding-top: 26px;
  }

  .atelier-auth-page .auth-editorial h2 {
    font-size: 24px;
  }

  .atelier-auth-page .auth-form-region {
    padding-left: 17px;
    padding-right: 17px;
  }

  .atelier-auth-page .code {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-auth-page * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
