/* ============================
   GLOBAL / BACKGROUND
   ============================ */
:root{
  --brand: #A03232;
  --brand-hover: #802020;
  --ink: #000;
  --paper: #fff;
  --soft-border: #cccccc;
  --glass-bg: rgba(0,0,0,0.55);      /* softened glass for containers */
  --glass-badge: rgba(160,50,50,0.70);/* lighter, semi-transparent label badge */
  --table-bg: rgba(0,0,0,0.6);
  --shadow: 0 0 24px rgba(0,0,0,0.45);
}

/* Background image for all pages (Index.html included).
   Uses Tower-1.jpg; falls back to tower-1.jpg if the first is missing. */
body {
  background-image: url("Tower-1.jpg"), url("tower-1.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: white;
  font-family: 'Trebuchet MS','Gill Sans MT',Calibri,sans-serif;
  margin: 0;
  text-align: center;
}

/* Headings */
h1, h2, h3 {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.35);
  margin-top: 18px;
}

/* Make inner form layouts left-aligned while preserving global center text */
.section-inner {
  text-align: left;
}

/* ============================
   FORM CONTAINERS (shared)
   ============================ */
.form-container,
#auth-container {
  background: var(--glass-bg);          /* <— softer glass (less dark) */
  padding: 32px;
  margin: 30px auto;
  border-radius: 14px;
  max-width: 760px;
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(2px);
}

/* Smaller auth card size for Index.html */
#auth-container {
  max-width: 420px;
  padding: 28px;
}

/* ============================
   LABEL "BADGE"
   ============================ */
.label-badge,
#auth-container label {
  display: inline-block;
  background: var(--glass-badge);   /* <— lighter, semi-transparent */
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  margin: 14px 0 6px;
}

/* Make all plain labels in forms consistent */
label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  font-weight: 700;
}

/* ============================
   INPUTS / SELECTS
   ============================ */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
input[type="password"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin: 8px 0 16px;
  border: 1px solid var(--soft-border);  /* no red borders */
  border-radius: 6px;
  font-size: 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink);        /* black placeholder text */
  font-weight: 700;
}

/* Focus: subtle blue-ish glow (no red) */
input:focus,
select:focus,
textarea:focus {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(122,167,255,0.25);
}

/* ============================
   BUTTONS
   ============================ */
button,
.button,
.button2,
.buttonr,
.selectbox {
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  font-size: 18px;
  margin: 10px 8px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  display: inline-block;
  text-align: center;
}
button:hover,
.button:hover,
.button2:hover,
.buttonr:hover,
.selectbox:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* Special “success” button (if you use .buttonr) */
.buttonr { background: #1e7f1e; }
.buttonr:hover { background: #176317; }

/* Full-width buttons inside auth card */
#auth-container button {
  width: 100%;
  margin: 8px 0;
  padding: 14px;
}

/* ============================
   AUTH TABS (Index.html)
   ============================ */
.tab-buttons { 
  display: flex; 
  justify-content: space-between; 
  gap: 4%; 
  margin-bottom: 16px; 
}
.tab-buttons button { width: 48%; }

/* ============================
   TABLES
   ============================ */
table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background: var(--table-bg);
  box-shadow: var(--shadow);
}
table, th, td {
  border: 1px solid #ffffff;
  padding: 12px;
  text-align: left;
  color: white;
  font-size: 15px;
}
thead th {
  background: rgba(255,255,255,0.08);
  font-weight: 800;
}

/* ============================
   MISC / UTILS
   ============================ */
hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.22);
  margin: 24px 0;
}

.small-note {
  font-size: 13px;
  opacity: 0.9;
}

/* Chip group (if used anywhere) */
.checkbox-group { margin: 6px 0 12px; }
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px 6px 0;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  user-select: none;
}
.checkbox-chip input[type="checkbox"] {
  accent-color: var(--brand);
  transform: scale(1.15);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 640px) {
  .form-container, #auth-container {
    margin: 18px auto;
    padding: 22px;
  }
  input, select, textarea {
    font-size: 16px;
    padding: 12px;
  }
  table, th, td { 
    font-size: 13px; 
    padding: 8px; 
  }
  .tab-buttons button { font-size: 16px; }
}
