/* Small local fixes for the iframe-only CBT screen. */

html,
body {
  margin: 0;
  background: #ffffff;
}

.sample-screen-root {
  padding: 22px 18px 34px;
  overflow-x: hidden;
}

/* Keep lines with and without ruby at the same visual height. */
.sample-screen-root ruby {
  ruby-align: center;
  line-height: 1.15;
  vertical-align: baseline;
}

.sample-screen-root ruby rt {
  height: 0.9em;
  line-height: 0.9;
  font-size: 0.48em;
  font-weight: 400;
}

.sample-screen-root .q-text,
.sample-screen-root .choice-item label,
.sample-screen-root .sample-passage,
.sample-screen-root .sample-passage-lead {
  line-height: 2.05;
}

.sample-screen-root.sample-login-active {
  min-height: 900px;
  padding: 0;
  background-color: #F5F6F8;
  background-image:
    linear-gradient(to right, rgba(33,37,41,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33,37,41,0.06) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
}

@media (max-width: 900px) {
  .sample-screen-root.sample-login-active {
    min-height: 700px;
  }
}

.sample-screen-root [hidden] {
  display: none !important;
}

.sample-exam-screen.sample-listening .time-border {
  display: none;
}

/* Center the language knowledge and reading screen containers without changing question content. */
.sample-exam-screen:not(.sample-listening) {
  width: 97%;
  margin-left: auto;
  margin-right: auto;
}

.sample-exam-screen:not(.sample-listening) #questionContainer.box {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.sample-login-screen {
  min-height: 730px;
  padding: 0;
  font-size: 16px;
}

.sample-login-header {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d92525;
  color: #ffffff;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
}

.sample-login-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
}

.sample-login-panel {
  width: 840px;
  max-width: 100%;
  padding: 46px 50px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(35, 43, 55, 0.08);
  text-align: left;
}

.sample-login-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: start;
  margin: 0;
}

.sample-login-field {
  margin-bottom: 18px;
}

.sample-login-field label {
  display: block;
  margin-bottom: 8px;
  color: #23272d;
  font-weight: 700;
}

.sample-login-field label span,
.sample-login-field label em {
  display: block;
}

.sample-login-field label em {
  color: #7a828c;
  font-style: normal;
  font-weight: 400;
}

.sample-login-field input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9dee4;
  border-radius: 5px;
  font-size: 18px;
  outline: none;
}

.sample-login-field input:focus {
  border-color: #aeb8c4;
  box-shadow: 0 0 0 2px rgba(217, 37, 37, 0.08);
}

.sample-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 14px;
}

.sample-start-button,
.sample-clear-button {
  height: 48px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.sample-start-button {
  background: #d92525;
}

.sample-clear-button {
  background: #78828b;
}

.sample-login-error {
  min-height: 20px;
  margin: 0 0 10px;
  color: #d92323 !important;
  font-weight: 700;
  text-align: left !important;
}

.sample-zoom-warning {
  padding: 12px 10px;
  border: 1px solid #efd2d1;
  border-radius: 4px;
  background: #f7e1df;
  color: #b14e4a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.sample-zoom-warning p {
  margin: 0;
}

.sample-login-qr-title {
  margin: 0 0 16px 4px;
  color: #23272d;
}

.sample-login-qr-title strong,
.sample-login-qr-title span {
  display: block;
}

.sample-login-qr-title span {
  color: #7a828c;
}

.sample-camera-preview {
  position: relative;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 38%),
    linear-gradient(90deg, #50555a 0 10%, #d8dbe0 10% 48%, #b7bcc3 48% 55%, #eef0f3 55% 100%);
}

.sample-camera-ceiling {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(95, 100, 106, 0.45) 0 14px, rgba(225, 228, 232, 0.65) 14px 32px),
    linear-gradient(#bfc3c8, #e7e9ec);
}

.sample-camera-face {
  position: absolute;
  left: 126px;
  top: 175px;
  width: 58px;
  height: 70px;
  border-radius: 45% 45% 42% 42%;
  background: #c19170;
  box-shadow: 0 -26px 0 -6px #242424;
}

.sample-camera-face::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  width: 42px;
  height: 10px;
  border-top: 4px solid #1d252d;
  border-left: 4px solid #1d252d;
  border-right: 4px solid #1d252d;
  border-radius: 10px 10px 0 0;
}

.sample-camera-body {
  position: absolute;
  left: 84px;
  bottom: -18px;
  width: 140px;
  height: 170px;
  border-radius: 46px 46px 0 0;
  background: #82a9d3;
}

.sample-camera-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: #1e73ff;
}

.sample-camera-corner-tl {
  left: 52px;
  top: 90px;
  border-top: 5px solid;
  border-left: 5px solid;
}

.sample-camera-corner-tr {
  right: 52px;
  top: 90px;
  border-top: 5px solid;
  border-right: 5px solid;
}

.sample-camera-corner-bl {
  left: 52px;
  bottom: 120px;
  border-bottom: 5px solid;
  border-left: 5px solid;
}

.sample-camera-corner-br {
  right: 52px;
  bottom: 120px;
  border-bottom: 5px solid;
  border-right: 5px solid;
}

.time-border {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  min-height: 54px;
  height: auto;
  padding: 5px 8px;
}

.time-border h4 {
  margin: 0;
  line-height: 1;
}

.time-style {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.btn-primary {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}

.sample-title-fallback {
  display: none;
  margin: 18px 0 20px 35px;
  padding: 16px 22px;
  border: 1px solid #cfcfcf;
  background: #fafafa;
}

.title1 {
  margin-right: 35px;
  overflow: hidden;
}

.title1 img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
}

/* Expand only the first moji/goi example into the unused side margins. */
.title1.title1--expanded-example {
  margin-left: -10px;
  margin-right: -10px;
  overflow: visible;
}

.title1.title1--expanded-example img {
  width: 100% !important;
  max-width: 100%;
  margin-left: 0;
}

.sample-title-fallback h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.sample-title-fallback p {
  margin: 0;
}

.sample-picture-placeholder {
  display: none;
  width: 360px;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  border: 1px solid #999;
  background: #f5f5f5;
  color: #555;
  font-weight: 700;
}

.sample-audio-notice {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 10px 18px;
  border: 1px solid #d7e3f3;
  border-radius: 4px;
  background: #f4f8fd;
  color: #2b5d91;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.sample-picture-question {
  clear: both;
}

.listening-example-image {
  margin: 0 0 26px;
  text-align: center;
}

.listening-example-image img {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
}

.sample-listening .listening-example-image {
  margin-left: -75px;
  margin-right: -10px;
}

.sample-listening .listening-example-image img {
  width: 100%;
  max-width: 100%;
}

.sample-picture-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding-left: 71px;
}

.sample-listening .sample-picture-layout {
  flex-direction: row-reverse;
}

.sample-listening .sample-picture-layout--image-left {
  justify-content: flex-start;
  padding-left: 0;
}

.sample-picture-layout .choice-list {
  flex: 0 1 240px;
  padding-left: 0;
}

.sample-picture-layout .choice-list--picture-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 420px;
}

.sample-picture-image {
  flex: 0 1 260px;
  max-width: 360px;
  min-width: 0;
}

.sample-question-picture {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.sample-image-below {
  margin: 22px auto 0;
  text-align: center;
}

.sample-image-below img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
}

.sample-picture-image--calendar {
  flex: 0 0 740px;
  width: 740px;
  max-width: 740px;
}

.sample-picture-image--calendar .sample-question-picture {
  max-width: 810px;
}

.sample-hotspot-question {
  clear: both;
}

.hotspot-image-wrap {
  position: relative;
  width: min(100%, 760px);
  margin: 28px auto 0;
  line-height: 0;
}

.hotspot-image {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot-choice-layer {
  position: absolute;
  inset: 0;
}

.hotspot-choice {
  position: absolute;
  width: 11%;
  height: 9%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.hotspot-choice:hover,
.hotspot-choice:focus-visible,
.hotspot-choice.is-selected {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.12);
  outline: none;
}

.hotspot-choice--a { left: 35%; top: 7%; }
.hotspot-choice--b { left: 84%; top: 7%; }
.hotspot-choice--c { left: 35%; top: 53%; }
.hotspot-choice--d { left: 84%; top: 53%; }

.hotspot-choice-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  width: min(100%, 760px);
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.5;
}

.sample-image-choice-question {
  clear: both;
}

.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 820px);
  margin: 28px auto 0;
}

.image-choice-card {
  position: relative;
  min-width: 0;
  line-height: 0;
}

.image-choice-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-choice-hotspot {
  position: absolute;
  top: 3%;
  right: 3%;
  width: 18%;
  height: 15%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.image-choice-hotspot:hover,
.image-choice-hotspot:focus-visible,
.image-choice-hotspot.is-selected {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.14);
  outline: none;
}

.sample-actions {
  position: relative;
  clear: both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 30px;
}

.end-of-part-label {
  position: absolute;
  left: 0;
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.sample-action-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.sample-actions .sample-action-stack .btn {
  min-width: 250px;
  padding-left: 28px;
  padding-right: 28px;
}

.sample-actions-end .sample-action-stack {
  transform: translateX(140px);
}

.sample-finish-panel {
  width: 640px;
  margin: 80px auto;
  padding: 34px;
  border: 1px solid #ccc;
  text-align: center;
}

.sample-finish-panel h2 {
  margin: 0 0 16px;
}

.sample-finish-screen .login-card {
  text-align: center;
}

.sample-finish-screen .page-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
}

.sample-finish-screen .page-subtitle {
  margin-bottom: 28px;
  color: #6d7782;
  font-size: 24px;
}

.finish-body-ja,
.finish-body-en {
  margin-bottom: 18px;
  line-height: 1.8;
}

.finish-body-en {
  margin-bottom: 28px;
  color: #586575;
}

.sample-passage {
  margin: 0 0 22px 35px;
  padding: 16px 22px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  white-space: pre-line;
  line-height: 1.9;
}

.sample-block {
  margin-bottom: 26px;
}

.question-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px 35px;
}

.q-number {
  box-sizing: border-box;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border: 1px solid #333333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.q-number.q-number--listening {
  width: auto;
  min-width: 0;
  height: auto;
  margin-top: 0;
  padding: 0;
  border: 0 !important;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
}

.sample-listening .sample-block .q-text {
  display: none;
}

.sample-listening .sample-picture-layout:has(.sample-picture-image--calendar) {
  flex-direction: column;
  gap: 0;
}

.sample-listening .sample-picture-layout:has(.sample-picture-image--calendar) .sample-picture-image {
  order: 1;
  flex: 0 0 auto;
  height: auto;
}

.sample-listening .sample-picture-layout:has(.sample-picture-image--calendar) .choice-list {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  flex: 1 1 auto;
  margin: 0;
  padding-left: 0;
}

.sample-listening .sample-picture-layout:has(.sample-picture-image--calendar) .sample-picture-image {
  margin-bottom: 0;
}

.sample-listening .sample-example-notice {
  margin-top: 12px;
}

.listening-next-question-label {
  margin: 52px 0 0 35px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.q-text {
  flex: 1;
  font-weight: 700;
  line-height: 1.8;
}

.q-text--regular {
  font-weight: 400;
}

.q-text--one-line {
  white-space: nowrap;
}

.q-text u {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ruby {
  ruby-position: over;
}

ruby rt {
  font-size: 0.48em;
  line-height: 1;
  font-weight: 400;
}

.choice-list {
  margin: 0 0 10px;
  padding-left: 71px;
}

.choice-list--inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
}

.choice-list--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-list--c2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
}

.sample-inline-choice-question .question-row--choice-line {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sample-inline-choice-question .question-row--two-rows {
  align-items: flex-start;
}

.sample-inline-choice-question .question-row--choice-line .choice-list {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 0;
}

.sample-inline-choice-question .choice-list--two-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.choice-item input[type="radio"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
}

.choice-item label {
  margin: 0;
  line-height: 1.4;
  white-space: normal;
}

.sample-subpage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 12px auto 22px;
  width: 180px;
  border: 1px solid #d9dee4;
  border-radius: 6px;
  overflow: hidden;
}

.sample-subpage-arrow,
.sample-subpage-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-right: 1px solid #d9dee4;
  border-radius: 0;
  background: #ffffff;
  color: #337ab7;
  font-size: 20px;
  cursor: pointer;
}

.sample-subpage-arrow:last-child,
.sample-subpage-btn:last-child {
  border-right: 0;
}

.sample-subpage-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.sample-subpage-btn.is-active {
  background: #337ab7;
  color: #ffffff;
  font-weight: 700;
}

.sample-passage--plain {
  border: 0;
  padding: 0;
  background: transparent;
}

.sample-passage--justify {
  text-align: justify;
  text-justify: inter-character;
}

.sample-passage-lead {
  margin: 0 0 12px 35px;
  line-height: 1.9;
}

.reading-paragraph-number {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
}

.reading-inline-blank {
  white-space: nowrap;
}

.listening-check-page {
  min-height: 300px;
  box-sizing: border-box;
  padding: 8px 18px 4px;
  text-align: center;
}

.listening-check-complete {
  padding-top: 8px;
}

.listening-check-page p {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
}

.listening-check-page .btn {
  min-width: 170px;
  padding: 8px 20px;
  font-size: 17px;
  margin-bottom: 10px;
}

.listening-check-page .btn-primary {
  background: #e6a064;
  border: 2px solid #222222;
  color: #202020;
}

.listening-check-page .btn-primary:hover,
.listening-check-page .btn-primary:focus,
.listening-check-page .btn-primary:active {
  background: #d88f54;
  border-color: #222222;
  color: #202020;
}

.sample-example-notice {
  margin: 18px auto;
  padding: 12px 18px;
  border: 1px solid #d92323;
  border-radius: 4px;
  background: #fff1f1;
  color: #d92323;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.sample-example-notice p {
  margin: 0;
}

/* Align the listening-only notice to the center of the CBT frame. */
.sample-listening .sample-example-notice {
  box-sizing: border-box;
  width: 103.1%;
  margin-left: -35px;
  margin-right: 0;
}

.listening-no-next {
  margin: 24px auto;
  color: #d92323;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.listening-no-next p {
  margin: 0;
}

.sample-audio-hidden {
  display: none;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 18px auto;
}

.sample-grid.single-column {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.grid-choice {
  display: block;
  position: relative;
  aspect-ratio: 682 / 772;
  overflow: hidden;
  border: 2px solid #d9dee4;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
}

.grid-choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.grid-choice input {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
}

.grid-choice:has(input:checked) {
  border-color: #337ab7;
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.25);
}

/* Login screen based on 05_jukentaiki_modern.html / cbt_public.css. */
.sample-login-screen {
  font-family: "BIZ UD Gothic", sans-serif;
  color: #212529;
}

.sample-login-screen .top-bar {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E2041B;
}

.sample-login-screen .top-title {
  color: #ffffff;
  font-size: clamp(28px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: clamp(1px, 0.5vw, 3px);
  line-height: 1;
}

.sample-login-screen .login-wrapper {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.sample-login-screen .login-card {
  width: 100%;
  max-width: 900px;
  padding: 48px;
  border: 1px solid rgba(222, 226, 230, 0.65);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(33, 37, 41, 0.08);
}

.sample-login-screen .login-grid {
  display: block;
  max-width: 520px;
  margin: 0 auto;
}

.sample-login-screen .login-grid > div,
.sample-login-screen .login-grid form {
  width: 100%;
}

.sample-login-screen .form-group {
  text-align: left;
}

.sample-login-screen .form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: "BIZ UD Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;
  text-align: left;
}

.sample-login-screen .en-label {
  color: #6C757D;
  display: inline;
  font-family: "BIZ UD Gothic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: left;
}

.sample-login-screen .form-control {
  width: 100%;
  height: 46px;
  border: 1px solid #DEE2E6;
  border-radius: 6px;
  box-shadow: none;
  color: #212529;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.42857143;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sample-login-screen .form-control:focus {
  border-color: #E2041B;
  box-shadow: 0 0 0 3px rgba(226, 4, 27, 0.12);
  outline: none;
}

.sample-login-screen .button-row {
  display: flex;
  width: 100%;
  gap: 12px;
  margin-top: 24px;
}

.sample-login-screen .button-row.is-single {
  justify-content: center;
}

.sample-login-screen .button-row.is-single .btn {
  flex: 1;
  max-width: 250px;
}

.sample-login-screen .button-row .btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.sample-login-screen .btn-primary {
  background: #E2041B;
  border: 1px solid #E2041B;
  color: #ffffff;
}

.sample-login-screen .btn-primary:hover,
.sample-login-screen .btn-primary:focus,
.sample-login-screen .btn-primary:active {
  background: #B00316;
  border-color: #B00316;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(226, 4, 27, 0.20);
}

.sample-login-screen .btn-secondary {
  background: #6C757D;
  border: 1px solid #6C757D;
  color: #ffffff;
}

.sample-login-screen .btn-secondary:hover,
.sample-login-screen .btn-secondary:focus,
.sample-login-screen .btn-secondary:active {
  background: #212529;
  border-color: #212529;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(33, 37, 41, 0.18);
}

.sample-login-screen .login-card .exam-level,
.sample-login-screen .login-card .exam-field {
  margin: 0 0 24px;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.sample-login-screen .login-card .exam-time {
  margin: 0 0 32px;
  font-size: 20px;
  text-align: center;
}

.sample-login-screen .login-card .exam-time .time-number {
  font-size: 24px;
  font-weight: 800;
}

.sample-login-screen .qr-area {
  text-align: center;
}

.sample-login-screen .qr-title {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 700;
}

.sample-login-screen #status {
  margin-bottom: 8px;
  color: #6C757D;
  font-size: 14px;
}

.sample-login-screen #status:empty {
  display: none;
  margin-bottom: 0;
}

.sample-login-screen .camera-wrapper {
  position: relative;
  width: 300px;
  margin: 0 auto;
}

.sample-login-screen #my_camera {
  position: relative;
  width: 300px;
  height: 380px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #DEE2E6;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 36%),
    linear-gradient(90deg, #4b5056 0 10%, #d8dbe0 10% 48%, #b8bdc4 48% 55%, #eef0f3 55% 100%);
}

.sample-login-screen #results img {
  max-width: 300px;
  margin-top: 12px;
  border-radius: 12px;
}

.sample-login-screen .sample-login-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #E2041B !important;
  font-weight: 700;
  text-align: left !important;
}

.sample-login-screen .sample-camera-ceiling {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(95, 100, 106, 0.45) 0 14px, rgba(225, 228, 232, 0.65) 14px 32px),
    linear-gradient(#bfc3c8, #e7e9ec);
}

.sample-login-screen .sample-camera-face {
  position: absolute;
  left: 124px;
  top: 166px;
  width: 58px;
  height: 70px;
  border-radius: 45% 45% 42% 42%;
  background: #c19170;
  box-shadow: 0 -26px 0 -6px #242424;
}

.sample-login-screen .sample-camera-face::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  width: 42px;
  height: 10px;
  border-top: 4px solid #1d252d;
  border-left: 4px solid #1d252d;
  border-right: 4px solid #1d252d;
  border-radius: 10px 10px 0 0;
}

.sample-login-screen .sample-camera-body {
  position: absolute;
  left: 82px;
  bottom: -18px;
  width: 140px;
  height: 166px;
  border-radius: 46px 46px 0 0;
  background: #82a9d3;
}

.sample-login-screen .qr-guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sample-login-screen .qr-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: #1e73ff;
}

.sample-login-screen .qr-corner.top-left {
  top: 90px;
  left: 52px;
  border-top: 5px solid;
  border-left: 5px solid;
}

.sample-login-screen .qr-corner.top-right {
  top: 90px;
  right: 52px;
  border-top: 5px solid;
  border-right: 5px solid;
}

.sample-login-screen .qr-corner.bottom-left {
  left: 52px;
  bottom: 98px;
  border-bottom: 5px solid;
  border-left: 5px solid;
}

.sample-login-screen .qr-corner.bottom-right {
  right: 52px;
  bottom: 98px;
  border-right: 5px solid;
  border-bottom: 5px solid;
}

@media (max-width: 860px) {
  .sample-login-screen .login-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sample-login-screen .login-card {
    padding: 28px;
  }

  .sample-login-screen .camera-wrapper,
  .sample-login-screen #my_camera,
  .sample-login-screen #results img {
    width: min(300px, 100%);
  }
}
