/* ==========================================================================
   SoloRiser — Extra components (auth, flash, forms, tables, modals)
   Loaded AFTER soloriser2.css — must NOT conflict with it.
   No reset, no body, no headings, no buttons, no nav, no footer.
   ========================================================================== */

/* ---------- Auth pages (system-window based) ---------- */
.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 14, 26, .8);
  border: 1px solid rgba(34, 211, 238, .15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  outline: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: border-color .3s, box-shadow .3s;
}
.auth-input:focus {
  border-color: rgba(34, 211, 238, .4);
  box-shadow: 0 0 12px rgba(34, 211, 238, .1);
}
.auth-input::placeholder {
  color: rgba(200, 214, 229, .3);
}
.auth-label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(200, 214, 229, .6);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-group {
  margin-bottom: 18px;
}
.auth-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  color: #fca5a5;
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 16px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .85rem;
  color: rgba(200, 214, 229, .7);
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  accent-color: #22d3ee;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.auth-check a {
  color: #22d3ee;
  text-decoration: underline;
}
.auth-check--health {
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, .2);
  background: rgba(245, 158, 11, .03);
  margin-top: 8px;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: rgba(200, 214, 229, .5);
}
.auth-footer a {
  color: #22d3ee;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: .8rem;
}
.auth-links a {
  color: rgba(34, 211, 238, .7);
  transition: color .2s;
}
.auth-links a:hover {
  color: #22d3ee;
}
.auth-success {
  text-align: center;
  padding: 20px;
}
.auth-success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ---------- Flash messages ---------- */
.flash-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flash {
  background: rgba(10, 14, 26, .95);
  border: 1px solid rgba(34, 211, 238, .3);
  padding: 12px 20px;
  color: #c8d6e5;
  font-size: .9rem;
  backdrop-filter: blur(10px);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  animation: flashIn .3s ease;
}
.flash--error {
  border-color: rgba(239, 68, 68, .4);
}
.flash--success {
  border-color: rgba(34, 197, 94, .4);
}
@keyframes flashIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Tables (for dashboard/legal) ---------- */
.table-data {
  width: 100%;
  border-collapse: collapse;
}
.table-data th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(200, 214, 229, .5);
  border-bottom: 1px solid rgba(34, 211, 238, .1);
}
.table-data td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: .85rem;
  color: #c8d6e5;
}
.table-data tr:hover td {
  background: rgba(34, 211, 238, .02);
}

/* ---------- Legal pages ---------- */
.legal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(34, 211, 238, .1);
}
.legal-tab {
  padding: 12px 24px;
  color: rgba(200, 214, 229, .5);
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s;
  font-weight: 500;
}
.legal-tab:hover {
  color: #22d3ee;
}
.legal-tab.active {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
}
.legal-content {
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 16px;
  color: rgba(200, 214, 229, .8);
}
.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 6px;
  color: rgba(200, 214, 229, .8);
}
.legal-content strong {
  color: #fff;
}
.legal-updated {
  font-size: .8rem;
  color: rgba(200, 214, 229, .4);
  margin-bottom: 24px;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.cookie-table th {
  background: rgba(34, 211, 238, .05);
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(200, 214, 229, .5);
}
.cookie-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: .85rem;
  color: rgba(200, 214, 229, .8);
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Checkbox global pattern ---------- */
label { cursor: pointer; }
label input[type="checkbox"] { cursor: pointer; }
label span { cursor: pointer; }

/* ---------- Utility / SR-only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .legal-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .legal-tab {
    padding: 10px 16px;
    font-size: .8rem;
  }
}
