/* ===========================================
   PETABYT — Auth pages (login / register)
   =========================================== */

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

/* Left aside (brand panel) */
.auth-aside {
  background: var(--ink);
  color: var(--bg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,244,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,238,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .auth-aside { padding: 32px; min-height: 200px; }
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.auth-brand:hover { color: var(--bg); text-decoration: none; }
.auth-brand .nav-mark {
  border-color: var(--bg);
  color: var(--bg);
}

.auth-pitch {
  max-width: 380px;
  margin-top: auto;
}
.auth-pitch h2 {
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--bg);
  margin-bottom: 16px;
}
.auth-pitch h2 em {
  font-style: normal;
  color: var(--accent);
}
.auth-pitch p {
  color: rgba(247,244,238,0.7);
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 900px) { .auth-pitch { display: none; } }

.auth-aside-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}
.auth-aside-footer .badge { background: rgba(247,244,238,0.06); border-color: rgba(247,244,238,0.14); color: rgba(247,244,238,0.7); }

/* Right form panel */
.auth-main {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
}

.auth-top-bar {
  position: absolute;
  top: 24px; left: 24px; right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-top-bar .back-link {
  color: var(--ink-2);
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auth-top-bar .back-link:hover { color: var(--accent); }

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-head { margin-bottom: 32px; }
.auth-head h1 {
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--ink);
}
.auth-head p {
  color: var(--ink-mute);
  font-size: 1rem;
}

.auth-form .form-input { padding: 13px 16px; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 20px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-2);
  cursor: pointer;
}
.form-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-soft);
  border-radius: 4px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all .15s var(--ease);
  position: relative;
  flex-shrink: 0;
}
.form-check input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.form-check input:checked::after {
  content: "";
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-link { font-size: 0.88rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-soft); }
.auth-link:hover { text-decoration-color: var(--accent); color: var(--accent); }

.auth-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-mute);
}

.demo-hint {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px dashed rgba(194,65,12,.35);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--accent-2);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.demo-hint::before {
  content: "DEMO  ";
  font-weight: 600;
  letter-spacing: 0.06em;
}
