/* FileShare UI · css/components.css · Logo, buttons, fields, login page. Loaded in the order listed in index.html. */
/* ---------------------------------------------------------------- logo */
.logo { display: flex; align-items: center; gap: 9px; color: var(--brand); user-select: none; }
.logo-mark { width: 40px; height: 34px; color: var(--brand); }
.logo-text { font-size: 28px; font-weight: 400; letter-spacing: -0.4px; line-height: 1; color: var(--brand-deep); }
.logo-text b { font-weight: 700; color: var(--brand); }
.logo-light .logo-mark { color: #fff; --logo-ink: #0C3B40; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text b { color: var(--amber); }

/* ---------------------------------------------------------------- buttons & fields */
.btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-dark); border-color: var(--btn-dark); }
.btn-small { padding: 2px 10px; font-size: 13px; }
.field { display: grid; gap: 4px; }
.field span { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="search"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="datetime-local"], input:not([type]), .form-grid select, .settings-form select {
  font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); min-width: 0;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(60, 130, 166, .15); }
.form-error { margin: 0; color: var(--danger); font-size: 13px; }

/* ---------------------------------------------------------------- login (FileShare, own design) */
.login { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); background: #fff; }

.login-story {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: 44px 56px 0;
  background: var(--brand-deep);
  color: #fff;
}
.login-story::before {           /* faint ruled-ledger lines: the filing-room feel */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px);
  pointer-events: none;
}
.story-copy { align-self: center; position: relative; max-width: 620px; }
.story-title { margin: 0; font-size: clamp(38px, 4.4vw, 62px); font-weight: 300; line-height: 1.08; letter-spacing: -1px; }
.story-sub { margin: 22px 0 0; font-size: 17px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 42ch; }

/* The shelf: four folder tabs standing on an edge; one is amber = shared */
.shelf { position: relative; display: flex; align-items: flex-end; gap: 14px; height: 210px; margin: 0 -8px; }
.shelf::after { content: ""; position: absolute; left: -56px; right: -56px; bottom: 0; height: 10px; background: #09292D; }
.tabfile {
  position: relative; flex: 1; min-width: 0;
  display: grid; align-content: start; gap: 4px;
  padding: 30px 16px 18px;
  border-radius: 4px 4px 0 0;
  background: #E9F1F1; color: var(--brand-deep);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.tab-ear {
  position: absolute; top: -22px; left: 12px;
  padding: 3px 12px 5px; border-radius: 6px 6px 0 0;
  background: inherit; font-size: 12px; font-weight: 700; color: var(--brand);
}
.tab-name { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-meta { font-size: 12.5px; color: #4B6B6E; }
.t1 { height: 150px; animation-delay: .05s; }
.t2 { height: 185px; background: #D8E8E8; animation-delay: .15s; }
.t3 { height: 170px; animation-delay: .25s; }
.t4 { height: 135px; background: #D8E8E8; animation-delay: .35s; }
.tabfile.shared { background: var(--amber); color: #3D2A00; }
.tabfile.shared .tab-ear { color: #6B4700; }
.tabfile.shared .tab-meta { color: #6B4F12; }
@keyframes rise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }

.login-panel { display: grid; align-content: center; justify-items: center; gap: 28px; padding: 40px 32px; }
.login-form { width: min(380px, 100%); display: grid; gap: 16px; }
.login-title { margin: 0; font-size: 30px; font-weight: 500; color: var(--brand-deep); letter-spacing: -.3px; }
.login-sub { margin: -8px 0 6px; color: var(--muted); }
.lfield { display: grid; gap: 6px; font-size: 14px; color: #3E4C59; font-weight: 500; }
.lfield input { padding: 11px 12px; font-size: 15px; }
.remember { display: flex; align-items: center; gap: 8px; color: #52606D; font-size: 13.5px; }
.remember input { width: 17px; height: 17px; accent-color: var(--brand); }
.login-btn { margin-top: 6px; padding: 12px; border: 0; border-radius: 4px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; }
.login-btn:hover { background: var(--brand-dark); }

.login-plugs { width: min(380px, 100%); display: flex; align-items: stretch; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.lp { flex: 1; display: grid; gap: 1px; padding: 8px 10px 8px 13px; border-radius: 4px; position: relative; min-width: 0; font-size: 12px; color: var(--muted); }
.lp b { font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; }
.lp-db { background: #E3F4EC; } .lp-db::before { background: var(--c-green); }
.lp-store { background: #E3EDF8; } .lp-store::before { background: var(--c-blue); }
.lp-wire { width: 26px; align-self: center; height: 2px; background: linear-gradient(90deg, var(--c-green), var(--c-blue)); }
.login-foot { margin: 0; color: #9AA5B1; font-size: 12px; }

@media (prefers-reduced-motion: reduce) { .tabfile { animation: none; } }
