/* The sign-in in front of the presenter (gate.js), in the presenter's own colours (classroom.css :root). */

body.gate-on { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(61, 139, 255, .22), transparent 70%),
    var(--ground, #050720);
  color: var(--text, #F3F5FF);
  font-family: var(--f-ar, 'Noto Kufi Arabic', system-ui, sans-serif);
}

.gate-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  border: 1px solid var(--edge-hi, rgba(255, 255, 255, .18));
  border-radius: 18px;
  background: var(--surface, #0B0E26);
  box-shadow: 0 24px 60px -20px rgba(166, 77, 255, .45);
  text-align: center;
}

.gate-logo {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--paper, #fff);
}

.gate h1 { margin: 14px 0 0; font-size: 28px; font-weight: 700; line-height: 1.7; }
.gate-sub { margin: 0 0 18px; color: var(--text-dim, #A9B1D6); font-family: var(--f-en, system-ui, sans-serif); font-size: 14px; }

.gate-form { display: flex; flex-direction: column; gap: 8px; text-align: start; }
.gate-form label { font-size: 14px; font-weight: 700; }

.gate input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--edge-hi, rgba(255, 255, 255, .18));
  border-radius: 10px;
  background: var(--surface-hi, #12163A);
  color: var(--text, #F3F5FF);
  font: inherit;
  font-size: 17px;
}
.gate input:focus { outline: 2px solid var(--blue, #1570FF); outline-offset: 1px; }

.gate-pw { display: flex; gap: 6px; }
.gate-pw button {
  flex: none;
  min-width: 64px;
  border: 1px solid var(--edge-hi, rgba(255, 255, 255, .18));
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim, #A9B1D6);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.gate-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #3D8BFF, #A64DFF);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.gate-btn:disabled { opacity: .6; cursor: default; }

.gate-link {
  display: block;
  margin: 12px auto 0;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--text-dim, #A9B1D6);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.gate-err { padding: 8px 12px; border-radius: 8px; background: rgba(242, 61, 176, .15); color: #FFB3E0; font-size: 14px; }
.gate-msg { margin: 8px 0; font-size: 16px; line-height: 1.8; }
.gate-hint { margin: 4px 0 0; color: var(--text-dim, #A9B1D6); font-size: 13px; }

/* the signed-in teacher, in the presenter's top bar */
.gate-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim, #A9B1D6); font-family: var(--f-ar, system-ui, sans-serif); font-size: 14px; }
.gate-chip button {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--edge-hi, rgba(255, 255, 255, .18));
  border-radius: 8px;
  background: transparent;
  color: var(--text, #F3F5FF);
  font: inherit;
  cursor: pointer;
}
