/* ============================================================
   IHMS — Auth pages (login / register)  · depends on theme.css
   ============================================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---- Brand side ---- */
.auth__brand {
  position: relative; overflow: hidden;
  background: var(--grad-deep); color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth__brand::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: var(--grad-mesh);
}
.auth__brand > * { position: relative; z-index: 1; }
.auth__brand .brand, .auth__brand .brand:hover { color: #fff; }
.auth__brand .brand small { color: var(--soft); }

.auth__hero h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.auth__hero p { color: var(--soft); font-size: 1.05rem; max-width: 26rem; }
.auth__points { margin-top: 2rem; display: grid; gap: 1.1rem; }
.auth__points li { display: flex; gap: .9rem; align-items: center; color: #eaf3fb; }
.auth__points .pt-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--soft); flex: 0 0 auto; }
.auth__points .pt-ico i, .auth__points .pt-ico svg { width: 21px; height: 21px; }
.auth__points b { font-family: var(--font-head); display: block; color:#fff; }
.auth__points span { font-size: .88rem; color: var(--soft); }

.auth__quote { border-left: 3px solid var(--accent); padding-left: 1rem; color: #eaf3fb; font-size: .98rem; }
.auth__quote span { display: block; margin-top: .5rem; color: var(--soft); font-size: .85rem; }

/* decorative orbs */
.auth__orb { position: absolute; border-radius: 50%; background: var(--grad-soft); opacity: .14; filter: blur(2px); }
.auth__orb--1 { width: 320px; height: 320px; top: -90px; right: -80px; }
.auth__orb--2 { width: 220px; height: 220px; bottom: -70px; left: -60px; }

/* ---- Form side ---- */
.auth__main {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem); background: var(--paper);
}
.auth__card { width: 100%; max-width: 420px; }
.auth__back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text-muted); margin-bottom: 1.6rem; }
.auth__back:hover { color: var(--brand); }
.auth__back i, .auth__back svg { width: 16px; height: 16px; }
.auth__card h1 { font-size: 1.9rem; margin-bottom: .35rem; }
.auth__card .sub { color: var(--text-muted); margin-bottom: 1.8rem; }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin: -.3rem 0 1.2rem; font-size: .9rem; }
.auth__row label { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; cursor: pointer; }
.auth__row a { font-family: var(--font-head); font-weight: 600; }

.auth__divider { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: .85rem; margin: 1.6rem 0; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--mist); }

.auth__social { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.btn-social {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1rem; border-radius: var(--r-md); cursor: pointer;
  border: 1.5px solid var(--mist); background: #fff; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-social:hover { border-color: var(--soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--text); }
.btn-social i, .btn-social svg { width: 18px; height: 18px; }
.btn-social .g { color: #db4437; } .btn-social .f { color: #1877f2; }

.auth__alt { text-align: center; margin-top: 1.6rem; color: var(--text-muted); font-size: .95rem; }
.auth__alt a { font-family: var(--font-head); font-weight: 700; }

.demo-note {
  margin-top: 1.4rem; font-size: .82rem; color: var(--text-muted);
  background: var(--mist-50); border: 1px dashed var(--soft); border-radius: var(--r-md);
  padding: .7rem .9rem;
}
.demo-note b { color: var(--brand); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__main { min-height: 100vh; }
}
