/* ============================================================
   SOLUSI OSINT — gaya halaman akun (masuk / daftar) + gating
   ============================================================ */

/* ---- area auth di navbar ---- */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
}
.nav-user .ava {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(43, 255, 136, 0.12); border: 1px solid var(--line-2);
  color: var(--green); font-weight: 700; font-size: 13px;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---- halaman form akun ---- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(43, 255, 136, 0.05);
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .6;
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .badge { margin-bottom: 18px; }
.auth-head h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 7px; text-transform: uppercase;
}
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-size: 14.5px; font-family: var(--sans);
  outline: none; transition: border .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 255, 136, 0.12); }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.field-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; }
.field-check input { margin-top: 3px; accent-color: var(--green); }
.field-check label { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.field-check a { color: var(--green); text-decoration: none; }

.btn-full { width: 100%; justify-content: center; }

.divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: 2px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.g-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f2328; border: none; border-radius: 10px;
  padding: 13px 18px; font-weight: 600; font-size: 14.5px; cursor: pointer;
  font-family: var(--sans); transition: transform .2s, box-shadow .2s;
}
.g-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.g-btn svg { width: 18px; height: 18px; }

.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--green); text-decoration: none; font-weight: 600; }
.auth-note { text-align: center; margin-top: 16px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.auth-note a { color: var(--muted); }

.form-msg {
  display: none; margin-bottom: 16px; padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; border: 1px solid var(--red-dim); color: var(--red-2);
  background: rgba(255, 59, 75, 0.07);
}
.form-msg.show { display: block; }
.form-msg.ok { border-color: var(--line-2); color: var(--green); background: rgba(43, 255, 136, 0.07); }

/* ---- catatan gating di atas tools ---- */
.gate-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px dashed var(--line-2); border-radius: 12px;
  padding: 13px 18px; margin-bottom: 26px;
  font-size: 13.8px; color: var(--muted);
  background: rgba(43, 255, 136, 0.03);
}
.gate-note b { color: var(--text); font-weight: 600; }
.gate-note a { color: var(--green); text-decoration: none; font-weight: 600; }
.gate-note .lk { font-size: 15px; }

/* ---- modal gating ---- */
.auth-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.auth-modal[hidden] { display: none; }
.auth-modal-back { position: absolute; inset: 0; background: rgba(3, 6, 4, 0.78); backdrop-filter: blur(4px); }
.auth-modal-card {
  position: relative; width: min(420px, 100%);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 46px rgba(43,255,136,.09);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(14px); opacity: 0; } }
.auth-modal-card .lk { font-size: 34px; display: block; margin-bottom: 14px; }
.auth-modal-card h3 { font-size: 20px; margin-bottom: 8px; }
.auth-modal-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.auth-modal-x {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--muted-2); font-size: 22px; cursor: pointer; line-height: 1;
}
.auth-modal-x:hover { color: var(--red-2); }

.tool-card.clickable { cursor: pointer; }

@media (max-width: 720px) {
  .nav-auth { display: none; }
}
