/* ---- Login gate ---- */
.login-gate {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55vh;
  padding: 2rem 1.25rem 4rem;
}
.login-card {
  background: rgba(16, 22, 46, 0.63);
  border: 1px solid #1a2033;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card h2 { margin: 0 0 0.35em; }
.login-card__lead { color: #6b7386; font-size: 0.9rem; margin: 0 0 1.75rem; }
.login-form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.login-form__row { display: flex; flex-direction: column; gap: 0.4rem; }
.login-form__row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7386;
}
.login-form__row input {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid #1a2033;
  border-radius: 10px;
  color: #e8ecf4;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}
.login-form__row input:focus { outline: none; border-color: rgba(108, 92, 231, 0.6); }
.login-form__error { color: #f5567a; font-size: 0.88rem; margin: 0; text-align: center; }
.login-form .btn { align-self: stretch; justify-content: center; margin-top: 0.25rem; }

/* ---- Manage page content ---- */
.manage-intro { text-align: center; padding-bottom: 1rem; }
.manage-intro h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); }

.manage-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.manage-card {
  background: rgba(16, 22, 46, 0.63);
  border: 1px solid #1a2033;
  border-radius: 20px;
  padding: 1.75rem 2rem;
}
.manage-card__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7386;
  margin: 0 0 1.25rem;
}

/* hours */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hours-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  gap: 0.75rem;
}
.hours-row__day {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e8ecf4;
}
.hours-row__times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #aab2c5;
}
.hours-row__times input[type="time"] {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid #1a2033;
  border-radius: 8px;
  color: #e8ecf4;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 0.3rem 0.5rem;
}
.hours-row__times input[type="time"]:focus { outline: none; border-color: rgba(108, 92, 231, 0.6); }

/* toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 2.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute;
  inset: 0;
  background: #1a2033;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle__slider::before {
  content: '';
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  background: #4a5168;
  border-radius: 50%;
  top: 0.175rem;
  left: 0.175rem;
  transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle__slider { background: rgba(108, 92, 231, 0.5); }
.toggle input:checked + .toggle__slider::before { transform: translateX(1rem); background: #6c5ce7; }

/* contact / announcement fields */
.manage-fields { display: flex; flex-direction: column; gap: 1rem; }
.manage-field { display: flex; flex-direction: column; gap: 0.4rem; }
.manage-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7386;
}
.manage-field__hint { font-weight: 400; text-transform: none; letter-spacing: 0; }
.manage-field input,
.manage-field textarea {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid #1a2033;
  border-radius: 10px;
  color: #e8ecf4;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}
.manage-field input:focus,
.manage-field textarea:focus { outline: none; border-color: rgba(108, 92, 231, 0.6); }
.manage-field textarea { resize: vertical; min-height: 80px; }

.manage-save-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.save-toast {
  font-size: 0.88rem;
  color: #4cd4a0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.save-toast.is-visible { opacity: 1; }
