/* ========================= GLOBAL RESET / BASE ========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1a1a, #050505);
  color: #fff;
}

/* ========================= CENTER LOGIN CARD ========================= */
#login_table, #register_table, #reset_pw_table {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(0%, -15%);
  width: 100%;
  max-width: 550px;
  padding: 20px;
}

/* ========================= CARD STYLE ========================= */
.tbl {
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* ========================= HEADER ========================= */
.header_main {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

/* ========================= LABELS UND ROWS ========================= */
.row {
  padding: 10px 0;
  font-size: 14px;
  color: #cfcfcf;
  background: transparent; /* Hintergrund blocken, kein Schwarz */
}

/* Label über Input */
.row b {
  display: block;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: left;
}

/* Inputs unter Label, ohne die Tabelle zu zerstören */
.row input[type="text"],
.row input[type="password"] {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 42px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); /* leichtes Overlay für Input */
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  margin-top: 4px; /* Abstand unter Label */
}

/* Input Fokus */
.row input[type="text"]:focus,
.row input[type="password"]:focus {
  border-color: #ff2e2e;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(255,46,46,0.25);
}

/* ========================= BUTTONS ========================= */

.tbl td[colspan="2"] {
  text-align: center;
  padding-top: 10px;
  background: transparent;
}

/* Buttons */
.tbl td[colspan="2"] button {
  min-width: 250px;
  height: 40px;
  border-radius: 1000px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin: 5px;
  transition: all 0.25s ease;

  background: linear-gradient(135deg, #ff2e2e, #c41414); /* eigener Hintergrund */
  color: #fff; /* Textfarbe */
  box-shadow: 0 4px 15px rgba(255,46,46,0.4);
}

.tbl td[colspan="2"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,46,46,0.6);
}

/* Haupt-Login */
.loginButton:first-of-type {
  background: linear-gradient(135deg, #ff2e2e, #c41414);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255,46,46,0.6);
}

.loginButton:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,46,46,0.7);
}

/* Sekundäre Buttons */
button[type="button"] {
  background: linear-gradient(135deg, #c41414, #ff2e2e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,46,46,0.4);
}

button[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,46,46,0.6);
}

/* ========================= LINKS ========================= */
a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ========================= FOOTER ========================= */
#pbl {
  position: fixed;
  bottom: 15px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* ========================= PROGRESS BAR ========================= */
#progressBar {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ========================= ICONS IN INPUTS ========================= */
input#login_username,
input#login_password {
  padding-left: 0px;
}

/* ========================= MOBILE RESPONSIVE ========================= */
@media (max-width: 480px) {
  .tbl td[colspan="2"] button {
    width: 100%;
  }
}
