/* TacAlp · aux-pages.css · stili condivisi per pagine ausiliarie
   Usato da: login.html · share.html · privacy.html · account-deletion.html
   Standalone (no import) — tokens replicati per essere autosufficiente. */

:root {
  --bg: #0B0E12;
  --bg2: #12171E;
  --bg3: #1A2029;
  --text: #F0F3F5;
  --text2: rgba(240, 243, 245, 0.66);
  --text3: rgba(240, 243, 245, 0.42);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --accent: #5BA8F0;
  --accent-soft: rgba(91, 168, 240, 0.15);
  --danger: #FF4E4E;
  --danger-soft: rgba(231, 76, 60, 0.15);
  --success: #4dc89a;
  --success-soft: rgba(77, 200, 154, 0.15);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Shell containers === */

.aux-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-6) var(--s-5);
}
.aux-shell--narrow { max-width: 420px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.aux-shell--wide   { max-width: 880px; }

/* === Brand header === */

.aux-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-6);
}
.aux-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.aux-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aux-brand__kicker {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text3);
}
.aux-brand__title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}
.aux-brand--center {
  flex-direction: column;
  text-align: center;
  border-bottom: 0;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
}
.aux-brand--center .aux-brand__logo { width: 64px; height: 64px; border-radius: var(--r-md); }

/* === Cards === */

.aux-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.aux-card--center { text-align: center; }
.aux-card--compact { padding: var(--s-4); }

/* === Typography === */

.aux-h1 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.aux-h1--accent  { color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: var(--s-3); }
.aux-h1--danger  { color: var(--danger); }

.aux-h2 {
  margin: var(--s-6) 0 var(--s-3);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}
.aux-h3 {
  margin: var(--s-4) 0 var(--s-2);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
}

.aux-p {
  margin: 0 0 var(--s-3);
  line-height: 1.6;
  color: var(--text);
}
.aux-muted    { color: var(--text2); font-size: var(--fs-sm); }
.aux-subtitle { color: var(--text2); font-size: var(--fs-sm); margin: 0 0 var(--s-6); }

.aux-shell ul, .aux-shell ol { margin: 0 0 var(--s-3); padding-left: 22px; }
.aux-shell li { margin-bottom: var(--s-1); }

.aux-shell code {
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* === Tabs === */

.aux-tabs {
  display: flex;
  margin-bottom: var(--s-5);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.aux-tab {
  flex: 1;
  padding: 10px 0;
  border: 0;
  background: var(--bg);
  color: var(--text2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.aux-tab.is-active { background: var(--accent); color: #fff; }

/* === Form elements === */

.aux-label {
  display: block;
  margin: var(--s-3) 0 var(--s-1);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.aux-input, .aux-textarea, .aux-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
}
.aux-textarea { resize: vertical; min-height: 80px; }
.aux-input:focus, .aux-textarea:focus, .aux-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Stack inputs verticalmente nei form login */
.aux-card form > .aux-input,
.aux-card form > .aux-textarea,
.aux-card form > .aux-select { margin-bottom: var(--s-2); }

/* === Buttons === */

.aux-btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
}
.aux-btn:active   { transform: scale(0.98); }
.aux-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.aux-btn--danger  { background: var(--danger); }
.aux-btn--ghost   {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  margin-top: var(--s-3);
}

/* === Inline error / status messages === */

.aux-err {
  color: var(--danger);
  font-size: var(--fs-sm);
  min-height: 1.2em;
  margin: var(--s-1) 0 var(--s-3);
}

.aux-msg {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  display: none;
}
.aux-msg--ok  { display: block; background: var(--success-soft); border: 1px solid var(--success); color: var(--success); }
.aux-msg--err { display: block; background: var(--danger-soft);  border: 1px solid var(--danger);  color: var(--danger); }

/* === Pending / success states === */

.aux-pending {
  color: var(--text2);
  font-size: var(--fs-base);
  line-height: 1.5;
  text-align: center;
}
.aux-pending__icon {
  color: var(--success);
  font-size: 1.6em;
  margin-bottom: var(--s-2);
  display: block;
}

/* === Box callout (privacy) === */

.aux-box {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
  border-radius: var(--r-sm);
}
.aux-box .aux-p:last-child { margin-bottom: 0; }

/* === Table (privacy) === */

.aux-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-3) 0;
  font-size: 0.92em;
  table-layout: fixed;
}
.aux-table th, .aux-table td {
  padding: var(--s-2) 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.aux-table th { background: var(--bg2); color: var(--accent); font-weight: 600; }

/* === Back link / footer === */

.aux-back-link {
  display: inline-block;
  margin-bottom: var(--s-5);
  color: var(--text2);
  font-size: var(--fs-sm);
}

.aux-footer {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: var(--fs-sm);
  text-align: center;
}
.aux-footer a { color: var(--accent); }

/* === Reduced motion === */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* === Mobile tweaks === */

@media (max-width: 480px) {
  .aux-shell { padding: var(--s-4) var(--s-3); }
  .aux-card  { padding: var(--s-4); }
}
