/* Base reset & layout */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #1b3a2d;
  color: #fff;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

header p {
  font-size: 0.85rem;
  opacity: 0.8;
}

header .back {
  color: #a8d5ba;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
header .back:hover { text-decoration: underline; }

/* Main content */
main {
  flex: 1;
  padding: 1.5rem;
}

main h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

main ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #1b3a2d;
  text-decoration: none;
  font-weight: 500;
  transition: box-shadow 0.15s, border-color 0.15s;
}
main ul li a:hover {
  border-color: #1b3a2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Iframe wrapper — full remaining height */
.iframe-wrapper {
  padding: 0;
  display: flex;
  flex: 1;
}

.iframe-wrapper iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* Access gate */
.gate-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 360px;
}

.gate-form label {
  font-size: 1rem;
  font-weight: 600;
  color: #1b3a2d;
}

.gate-form input {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.gate-form input:focus {
  outline: 2px solid #1b3a2d;
  outline-offset: 1px;
  border-color: #1b3a2d;
}

.gate-form button {
  padding: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  background: #1b3a2d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.gate-form button:hover {
  background: #143024;
}

.gate-error {
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 500;
}

