/* =========================================================
   iFound Hub — login / auth
   ========================================================= */

body.auth { min-height: 100vh; margin: 0; }
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.auth-aside {
  position: relative; overflow: hidden; padding: 52px 46px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(500px 400px at 10% 100%, rgba(34, 211, 238, 0.28), transparent 60%),
    linear-gradient(160deg, #171a4a 0%, #0b1024 60%, #060913 100%);
  color: #eef1ff; border-inline-end: 1px solid var(--border);
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand .brand-name { font-size: 1.4rem; font-weight: 800; color: #fff; }
.auth-brand .brand-sub { color: #9fb0e8; }
.auth-headline { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.55; margin: 0; color: #fff; }
.auth-headline .grad-text { background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-lead { color: #aab6e0; max-width: 46ch; }

.auth-feats { display: flex; flex-direction: column; gap: 14px; }
.auth-feat { display: flex; align-items: flex-start; gap: 12px; }
.auth-feat .material-symbols-outlined {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(255,255,255,0.1); color: #8be9fd;
}
.auth-feat strong { display: block; color: #fff; font-size: 0.92rem; }
.auth-feat span { color: #98a4cc; font-size: 0.82rem; }

.auth-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.auth-stat b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; }
.auth-stat span { color: #8f9cc6; font-size: 0.78rem; }

.auth-panel { display: grid; place-items: center; padding: 44px 26px; background: var(--bg); }
.auth-card { width: min(430px, 100%); }
.auth-card .brand-logo { margin-bottom: 14px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .lead { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-hint {
  margin-top: 22px; padding: 13px 15px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px dashed var(--border-strong); font-size: 0.8rem; color: var(--text-muted);
}
.auth-hint code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; color: var(--brand); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }
.auth-top-actions { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; z-index: 3; display: flex; gap: 8px; }

/* Standalone icon button for the auth pages — `.icon-btn` lives in layout.css,
   which these public pages don't load. */
.auth-icon-btn {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  display: grid; place-items: center; position: relative; cursor: pointer; text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.auth-icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.auth-icon-btn:active { transform: translateY(0); }
.auth-icon-btn .material-symbols-outlined { font-size: 1.25rem; line-height: 1; }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
