/*
  components.css
  Dark Neumorphic component system (minimal + reusable)
*/

/* =========================
   AUTH LAYOUT (SINGLE PANEL)
   ========================= */

.auth-layout{
  width: min(520px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

@media (max-width: 900px){
  .auth-layout{
    width: min(520px, calc(100% - 1.5rem));
    gap: 22px;
  }
}

.auth-header{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-logo{
  width: 220px;
  max-width: 70%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.auth-title{
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-title span{ display: block; }

.auth-title span:first-child{
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
}

.auth-title span:last-child{
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--muted2);
}

/* Title/subtitle helpers (login cards etc.) */
.card-title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.card-subtitle{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted2);
}

/* Footer small print */
.smallprint{
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  margin-top: 14px;
}

/* Utility colors */
.muted{ color: var(--muted); }
.muted2{ color: var(--muted2); }

/* ======================
   NEUMORPHIC SURFACES
   ====================== */

.neu-card{
  width: 100%;
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow:
    18px 18px 42px var(--shadow-darker),
    -12px -12px 26px var(--shadow-light);
}

.neu-card--tight{ padding: 18px; }

/* ======================
   TOPBAR (DASHBOARD ETC)
   ====================== */

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.topbar img{
  width: 160px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.pill{
  padding: 0.40rem 0.70rem;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  font-size: 0.92rem;
  box-shadow:
    10px 10px 20px rgba(0,0,0,.55),
    -8px -8px 16px rgba(255,255,255,.035);
}

/* ======================
   FORMS
   ====================== */

.form{ display: grid; gap: 0.9rem; margin-top: 1.1rem; }

.label{
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,.70);
}

.neu-input{
  width: 100%;
  padding: 0.90rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
  box-shadow:
    inset 10px 10px 20px rgba(0,0,0,.65),
    inset -10px -10px 20px rgba(255,255,255,.04);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.neu-input:focus{
  border-color: rgba(255,231,0,.28);
  transform: translateY(-1px);
  box-shadow:
    inset 10px 10px 22px rgba(0,0,0,.70),
    inset -10px -10px 22px rgba(255,255,255,.05),
    0 0 0 3px rgba(255,231,0,.08);
}

.row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.66);
  user-select: none;
}

.toggle input{
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.link{
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 13px;
}

.link:hover{ color: #fff; text-decoration: underline; }

/* ======================
   BUTTONS
   ====================== */

.neu-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 0.90rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  width: 100%;
  letter-spacing: .01em;
  box-shadow:
    14px 14px 28px rgba(0,0,0,.70),
    -10px -10px 22px rgba(255,255,255,.05);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.neu-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,231,0,.20);
}

.neu-btn:active{
  transform: translateY(0);
  box-shadow:
    inset 12px 12px 22px rgba(0,0,0,.72),
    inset -10px -10px 20px rgba(255,255,255,.05);
}

.neu-btn .dot{
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 10px;
  box-shadow: 0 0 16px rgba(255,231,0,.35);
  vertical-align: middle;
}

/* ======================
   ALERTS
   ====================== */

.alert{
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 77, 77, .25);
  background: rgba(255, 77, 77, .10);
  color: rgba(255,255,255,.88);
  font-size: 0.95rem;
}

/* ======================
   SMALL HELPERS
   ====================== */

.center{ text-align: center; }
.mt-1{ margin-top: 0.5rem; }
.mt-2{ margin-top: 1rem; }
.mt-3{ margin-top: 1.5rem; }
