/* Ventrix Auth — Login / Register */
.auth-body {
  margin: 0;
  min-height: 100vh;
  color: #eef5ff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(8, 124, 255, .22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 90%, rgba(120, 45, 255, .18), transparent 50%),
    linear-gradient(135deg, #050c1c 0%, #07152e 50%, #061126 100%);
}
.auth-body * { box-sizing: border-box; }
.auth-body a { color: #5ec8ff; text-decoration: none; }
.auth-body a:hover { color: #9ae0ff; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: center;
  padding: 48px 56px;
  overflow: hidden;
  border-right: 1px solid rgba(70, 120, 200, .22);
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 180, 255, .16), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(140, 60, 255, .14), transparent 50%),
    linear-gradient(160deg, #071833, #050f22);
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background:
    radial-gradient(120% 60% at -10% 90%, transparent 40%, rgba(0, 180, 255, .08) 42%, transparent 46%),
    radial-gradient(100% 50% at 110% 10%, transparent 50%, rgba(120, 60, 255, .07) 54%, transparent 58%);
  pointer-events: none;
}
.auth-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.auth-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(160deg, #5CEBFF, #087CFF 45%, #5B3DFF);
  box-shadow: 0 0 22px rgba(0, 180, 255, .4);
}
.auth-brand strong {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.auth-brand strong i {
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: #9b5cff;
  box-shadow: 0 0 12px rgba(155, 92, 255, .95);
}
.auth-brand em {
  display: block;
  margin-top: 3px;
  color: #8aa6cb;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.auth-visual h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.15;
}
.auth-visual p {
  margin: 0 0 28px;
  color: #9eb7e0;
  font-size: 15px;
  line-height: 1.6;
}
.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7e8ff;
  font-size: 14px;
  font-weight: 600;
}
.auth-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22e39a, #087cff);
  box-shadow: 0 0 12px rgba(34, 227, 154, .5);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
}
.auth-card {
  width: min(100%, 440px);
  padding: 32px 28px 28px;
  border-radius: 22px;
  border: 1px solid rgba(70, 120, 200, .32);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(42, 168, 255, .12), transparent 55%),
    linear-gradient(160deg, rgba(14, 30, 58, .96), rgba(8, 18, 38, .98));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: blur(14px);
}
.auth-card-wide { width: min(100%, 520px); }
.auth-card-top {
  margin-bottom: 22px;
}
.auth-card-top h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.auth-card-top p {
  margin: 0;
  color: #9eb7e0;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.auth-alert.error {
  color: #ffb0c0;
  border: 1px solid rgba(255, 80, 110, .35);
  background: rgba(255, 70, 100, .12);
}
.auth-alert.success {
  color: #9ef0c8;
  border: 1px solid rgba(34, 227, 154, .35);
  background: rgba(34, 227, 154, .12);
}

.auth-form { display: grid; gap: 14px; }
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-field {
  display: grid;
  gap: 7px;
}
.auth-field span {
  color: #a9c0e5;
  font-size: 12px;
  font-weight: 700;
}
.auth-field span em {
  color: #7897c5;
  font-style: normal;
  font-weight: 500;
}
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #eef5ff;
  font: inherit;
  border: 1px solid rgba(65, 115, 190, .35);
  border-radius: 12px;
  background: rgba(10, 24, 48, .75);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input::placeholder { color: #6f8ab3; }
.auth-field input:focus {
  border-color: #00d7ff;
  box-shadow: 0 0 0 3px rgba(0, 215, 255, .15);
}
.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.auth-row a {
  font-size: 12.5px;
  font-weight: 600;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b7ccec;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.auth-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #087cff;
}
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(105deg, #1a9bff, #5b2dff 55%, #00c9d9);
  box-shadow: 0 12px 28px rgba(60, 100, 255, .35);
  transition: filter .18s ease, transform .18s ease;
}
.auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.auth-submit span { font-size: 16px; }
.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #9eb7e0;
  font-size: 13.5px;
}
.auth-switch a { font-weight: 700; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-main { padding: 28px 16px 40px; }
  .auth-card,
  .auth-card-wide { width: min(100%, 480px); }
}
@media (max-width: 560px) {
  .auth-grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px 22px; }
  .auth-card-top h1 { font-size: 24px; }
}

/* PWA install on auth — mobile only */
.pwa-install-wrap { display: none !important; }
.pwa-install-btn[hidden],
.pwa-ios-tip[hidden] { display: none !important; }
@media (max-width: 760px) {
  .auth-pwa.is-ready {
    display: block !important;
    margin-top: 16px;
  }
  .auth-pwa .pwa-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(0, 200, 255, .35);
    border-radius: 14px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(105deg, #0a7dff, #00c8ff);
    box-shadow: 0 8px 22px rgba(0, 140, 255, .25);
  }
  .auth-pwa .pwa-install-btn[hidden] { display: none !important; }
  .auth-pwa .pwa-ios-tip {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(70, 130, 220, .28);
    background: rgba(8, 24, 48, .65);
    color: #b7cae4;
    font-size: 12px;
    line-height: 1.4;
  }
  .auth-pwa .pwa-ios-tip strong { color: #fff; }
}
