/* --- General --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Make sure this path is correct relative to your CSS file */
  background-image: url("../Images/Stadium.jpg");
  background-position: center;
  background-size: cover;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 5, 5, 0.7), #0a0a0a);
  z-index: 1;
}

/* --- login card --- */
.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 450px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* --- nav --- */
.card-nav {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-back {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #ff1f1f;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff1f1f;
}

/* --- text --- */
.card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.card-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* --- form --- */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  user-select: none;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 3rem;
  color: #ffffff;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  border-color: #ff1f1f;
  box-shadow: 0 0 0 1px #ff1f1f;
  background: rgba(255, 255, 255, 0.1);
}

.forgot-link {
  font-size: 0.75rem;
  color: rgba(255, 31, 31, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #ff1f1f;
}

/* --- checkbox --- */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-left: 0.25rem;
}

/* Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

input[type="checkbox"]:checked {
  background-color: #ff1f1f;
  border-color: #ff1f1f;
}

/* This relies on Material Symbols font being loaded in HTML */
input[type="checkbox"]:checked::after {
  content: "check";
  font-family: "Material Symbols Outlined";
  font-size: 1rem;
  color: #000;
  font-weight: 700;
}

.checkbox-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  user-select: none;
}

/* --- button --- */
.btn-submit {
  width: 100%;
  background-color: #ff1f1f;
  color: #000000;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 31, 31, 0.5);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(255, 31, 31, 0.5);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* --- footer --- */
.signup-text {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.signup-link {
  color: #ff1f1f;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.25rem;
}

.signup-link:hover {
  text-decoration: underline;
}

.brand-footer {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0.3;
}

.brand-line {
  height: 1px;
  width: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #ffffff;
}
