/* JOIN_STYLE.CSS */

:root {
  --bg: #f3f7fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #193044;
  --primary: #215f97;
  --primary-dark: #174a76;
  --secondary: #e5e7eb;
  --secondary-dark: #d1d5db;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;
  --warn-bg: #fff7ed;
  --warn-border: #fdba74;
  --warn-text: #9a3412;
}

.page-wrap {
  max-width: 840px;
  margin: 10px auto;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 3px 3px 5px #999;
  /* box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);  */
}

.join_h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2rem;
  color: #123b63;
  text-align: center;
}

.instructions-box {
  background: #eef5fb;
  /* border-left: 5px solid var(--primary); */
  border: 1px solid #102a40;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 3px 3px 5px #999;
  margin-bottom: 24px;
}

.instructions-box p {
  margin: 0 0 10px 0;
}

.instructions-box p:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.required {
  color: #b91c1c;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #c8d2dc;
  border-radius: 9px;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 95, 151, 0.15);
}

.help-text {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  border: none;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 2px 2px 5px #999;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  background: #a8bfd4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--secondary);
  color: #111827;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.alert-warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .page-wrap {
    margin: 20px auto;
    padding: 12px;
  }

  .card {
    padding: 20px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.admin-link {
  margin-top: 20px;
}

.admin-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.admin-link a:hover {
  text-decoration: underline;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.entry-list {
  display: grid;
  gap: 16px;
}

.entry-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 16px;
}

.entry-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.entry-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
}

.btn-danger:hover {
  background: #991b1b;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
}

.login-box {
  max-width: 420px;
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.count-box {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #eef5fb;
  border: 1px solid #d7e8f6;
  border-radius: 10px;
  font-weight: 700;
}
