/* Authentication pages — aligned with the public landing page and personal cabinet. */
:root{
  --auth-bg: #242424;
  --auth-bg-deep: #202020;
  --auth-surface: #2a2a2a;
  --auth-surface-soft: #303030;
  --auth-input: #202020;
  --auth-text: #f1f0ed;
  --auth-muted: #b9b6b1;
  --auth-accent: #a58f6b;
  --auth-accent-hover: #bda47b;
  --auth-line: rgba(255, 255, 255, .13);
  --auth-line-soft: rgba(255, 255, 255, .085);
  --auth-shadow: 0 22px 55px rgba(0, 0, 0, .2);
}

body{
  min-width: 320px;
  background: var(--auth-bg);
  color: var(--auth-text);
}

header{
  background: rgba(36, 36, 36, .96);
  border-bottom: 1px solid var(--auth-line);
}

.auth-nav{
  position: relative;
  width: min(1480px, calc(100% - 3.25rem));
  min-height: 66px;
  margin: 0 auto;
  padding: .85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.auth-nav-side{
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
}

.auth-nav a{
  color: var(--auth-muted);
  font-size: .78rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.auth-nav a:hover{
  color: var(--auth-text);
  text-decoration: none;
}

.auth-brand{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--auth-text) !important;
  font-size: 1.02rem !important;
  letter-spacing: .04em !important;
}

.auth-nav-cta{
  padding: .48rem .82rem;
  border: 1px solid rgba(165, 143, 107, .58);
  border-radius: 999px;
  color: var(--auth-accent-hover) !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.auth-nav-cta:hover{
  border-color: var(--auth-accent-hover);
  background: rgba(165, 143, 107, .12);
}

.auth-page{
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 67px);
  overflow: hidden;
  background:
    radial-gradient(820px 420px at 82% -40px, rgba(165, 143, 107, .14), transparent 68%),
    radial-gradient(700px 380px at 10% 105%, rgba(165, 143, 107, .07), transparent 68%),
    var(--auth-bg);
}

.auth-page::after{
  position: absolute;
  right: -190px;
  bottom: -260px;
  z-index: -1;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(165, 143, 107, .08);
  border-radius: 50%;
  content: "";
}

.auth-container{
  width: min(1180px, calc(100% - 3.25rem));
  margin: 0 auto;
}

.auth-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: clamp(3.2rem, 8vw, 8rem);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: 4.7rem 0 5.4rem;
}

.auth-page section,
.auth-page section:last-child{
  padding: 0;
  border: 0;
}

.auth-eyebrow,
.auth-card-eyebrow{
  margin: 0 0 .86rem;
  color: var(--auth-accent-hover);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-intro h1{
  max-width: 690px;
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(2.8rem, 5.3vw, 5.05rem);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: .98;
}

.auth-intro-description{
  max-width: 590px;
  margin-top: 1.35rem;
  color: var(--auth-muted);
  font-size: .98rem;
  line-height: 1.75;
}

.auth-benefits{
  display: grid;
  gap: .86rem;
  max-width: 590px;
  margin-top: 2.1rem;
}

.auth-benefit{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .88rem;
  align-items: start;
  padding: .95rem 1rem;
  border: 1px solid var(--auth-line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.auth-benefit-index{
  color: var(--auth-accent-hover);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.auth-benefit h2{
  margin: 0;
  color: var(--auth-text);
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.auth-benefit p{
  margin-top: .24rem;
  color: var(--auth-muted);
  font-size: .78rem;
  line-height: 1.58;
}

.auth-wave{
  position: relative;
  width: min(590px, 100%);
  height: 155px;
  margin-top: 1.8rem;
  overflow: hidden;
  border: 1px solid var(--auth-line-soft);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(165, 143, 107, .08), transparent 55%),
    rgba(255, 255, 255, .012);
}

.auth-wave::before,
.auth-wave::after{
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--auth-line-soft);
  content: "";
}

.auth-wave::before{ top: 50%; }
.auth-wave::after{ top: 26%; opacity: .65; }

.auth-wave-ring{
  position: absolute;
  top: 50%;
  left: 30%;
  border: 1px solid rgba(189, 164, 123, .4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.auth-wave-ring-one{ width: 48px; height: 48px; }
.auth-wave-ring-two{ width: 102px; height: 102px; opacity: .66; }
.auth-wave-ring-three{ width: 174px; height: 174px; opacity: .34; }

.auth-wave-dot{
  position: absolute;
  top: 50%;
  left: 30%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--auth-accent-hover);
  box-shadow: 0 0 18px rgba(189, 164, 123, .5);
  transform: translate(-50%, -50%);
}

.auth-wave-label{
  position: absolute;
  right: 1rem;
  bottom: .82rem;
  color: var(--auth-muted);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.auth-panel{
  position: relative;
}

.auth-panel::before{
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: 18px;
  left: 18px;
  z-index: -1;
  border: 1px solid rgba(165, 143, 107, .17);
  border-radius: 22px;
  content: "";
}

.auth-card{
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--auth-line-soft);
  border-radius: 22px;
  background: rgba(42, 42, 42, .98);
  box-shadow: var(--auth-shadow);
}

.auth-card h2{
  margin: 0;
  color: var(--auth-text);
  font-size: 2.15rem;
  font-weight: 620;
  letter-spacing: -.04em;
  line-height: 1;
}

.auth-meta{
  margin: .82rem 0 1.55rem;
  color: var(--auth-muted);
  font-size: .86rem;
  line-height: 1.62;
}

.form-row{
  margin-bottom: 1rem;
}

.form-row label{
  display: block;
  margin-bottom: .42rem;
  color: var(--auth-text);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.form-row input{
  width: 100%;
  min-height: 48px;
  padding: .82rem .9rem;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: var(--auth-input);
  color: var(--auth-text);
  font: inherit;
  font-size: .88rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-row input::placeholder{
  color: rgba(185, 182, 177, .5);
}

.form-row input:hover{
  border-color: rgba(189, 164, 123, .44);
}

.form-row input:focus{
  outline: none;
  border-color: rgba(189, 164, 123, .88);
  background: #232323;
  box-shadow: 0 0 0 3px rgba(165, 143, 107, .12);
}

.auth-field-hint{
  margin-top: .43rem;
  color: var(--auth-muted);
  font-size: .7rem;
  line-height: 1.5;
}

.auth-error{
  margin-bottom: 1rem;
  padding: .78rem .85rem;
  border: 1px solid rgba(211, 124, 111, .36);
  border-radius: 12px;
  background: rgba(211, 124, 111, .09);
  color: #e6b4ab;
  font-size: .78rem;
  line-height: 1.55;
}

.auth-form-actions{
  display: flex;
  gap: .65rem;
  margin-top: 1.35rem;
}

.auth-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .67rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.auth-button:hover{
  transform: translateY(-1px);
  text-decoration: none;
}

.auth-button:disabled{
  opacity: .6;
  cursor: wait;
  transform: none;
}

.auth-button-primary{
  border-color: var(--auth-accent);
  background: var(--auth-accent);
  color: #24201b;
}

.auth-button-primary:hover{
  border-color: var(--auth-accent-hover);
  background: var(--auth-accent-hover);
  color: #24201b;
}

.auth-button-secondary{
  border-color: var(--auth-line);
  background: rgba(255, 255, 255, .018);
  color: var(--auth-muted);
}

.auth-button-secondary:hover{
  border-color: rgba(165, 143, 107, .55);
  background: rgba(165, 143, 107, .08);
  color: var(--auth-text);
}

.auth-links{
  display: flex;
  justify-content: space-between;
  gap: .85rem;
  margin-top: 1.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--auth-line-soft);
  flex-wrap: wrap;
}

.auth-links a{
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
  color: var(--auth-muted);
  font-size: .76rem;
  text-decoration: none;
}

.auth-links a:hover{
  border-bottom-color: rgba(189, 164, 123, .68);
  color: var(--auth-accent-hover);
}

.auth-links-single{
  justify-content: flex-start;
}

@media (max-width: 960px){
  .auth-shell{
    grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
    gap: 2.4rem;
  }

  .auth-intro h1{
    font-size: clamp(2.45rem, 5vw, 3.85rem);
  }
}

@media (max-width: 780px){
  .auth-nav{
    width: min(100% - 2rem, 720px);
  }

  .auth-nav-left a:not(:first-child),
  .auth-contact-link{
    display: none;
  }

  .auth-shell{
    display: block;
    width: min(560px, calc(100% - 2rem));
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .auth-intro{
    margin-bottom: 2.1rem;
  }

  .auth-intro h1{
    font-size: clamp(2.45rem, 10vw, 4rem);
  }

  .auth-intro-description{
    margin-top: 1rem;
  }

  .auth-benefits,
  .auth-wave{
    display: none;
  }

  .auth-panel::before{
    top: -12px;
    right: -12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 480px){
  .auth-brand{
    position: static;
    order: -1;
    transform: none;
  }

  .auth-nav{
    justify-content: space-between;
    gap: .7rem;
  }

  .auth-nav-left{
    display: none;
  }

  .auth-nav-right{
    gap: .7rem;
  }

  .auth-card{
    padding: 1.45rem;
    border-radius: 18px;
  }

  .auth-card h2{
    font-size: 1.92rem;
  }

  .auth-form-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .auth-button{
    width: 100%;
  }

  .auth-links{
    flex-direction: column;
    align-items: flex-start;
  }
}
