:root {
  --entry-blue: #002fa7;
  --entry-line: #d9dadd;
}

.classroom-entry {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  background: #f7f7f8;
}

.entry-status,
.entry-error {
  margin: 0;
  color: #5c5d61;
  font-size: 14px;
}

.entry-panel {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--entry-line);
  background: #fff;
}

.entry-panel h1 {
  margin: 0 0 32px;
  color: #171719;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.entry-panel form { display: grid; }

.entry-panel label {
  margin-bottom: 8px;
  color: #414247;
  font-size: 13px;
}

.entry-panel input,
.entry-panel button {
  width: 100%;
  height: 46px;
  border-radius: 0;
}

.entry-panel input {
  padding: 0 12px;
  border: 1px solid #aeb0b5;
  outline: 0;
  background: #fff;
  color: #171719;
  font-size: 16px;
}

.entry-panel input:focus { border-color: var(--entry-blue); }

.entry-panel button {
  margin-top: 12px;
  border: 1px solid var(--entry-blue);
  background: var(--entry-blue);
  color: #fff;
  font-weight: 600;
}

.entry-panel button:disabled { opacity: 0.55; }

.wechat-note {
  margin: 18px 0 0;
  color: #686a70;
  font-size: 12px;
}

.entry-panel .entry-error {
  min-height: 18px;
  margin-top: 10px;
  color: #b32645;
  font-size: 12px;
}

.classroom-app {
  width: 100%;
  height: 100%;
}

@media (min-width: 721px) {
  .room.room--desktop-student {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr) 390px;
    width: min(100%, 1280px);
    border-right: 1px solid #d9dadd;
    border-left: 1px solid #d9dadd;
  }

  .room--desktop-student .stage {
    width: 100%;
    height: 100%;
  }
}

.room.room--mobile-landscape {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr) minmax(280px, 36vw);
  width: 100%;
  max-width: none;
}

.room--mobile-landscape .stage:not(.landscape-mode) {
  width: 100%;
  height: 100%;
}

@media (orientation: portrait) {
  .room.room--mobile-landscape {
    grid-template: var(--video-height) minmax(0, 1fr) / 1fr;
    max-width: 720px;
  }

  .room--mobile-landscape .stage:not(.landscape-mode) { height: var(--video-height); }
}
