/* Both entry pages share the TurboLeja star tile and finish-line detail. */
body.admin-entry, body.public-entry {
  --entry-paper: #fff8e8;
  --entry-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='96' viewBox='0 0 128 96'%3E%3Cg fill='%236883ae'%3E%3Cpath d='M22 12h4v4h4v4h-4v4h-4v-4h-4v-4h4zM94 64h4v4h4v4h-4v4h-4v-4h-4v-4h4z'/%3E%3Cpath d='M64 36h3v3h-3zM8 68h3v3H8zM112 20h3v3h-3z'/%3E%3C/g%3E%3C/svg%3E");
  --entry-finish: repeating-conic-gradient(#192644 0 25%, #fff4d7 0 50%) 0 0 / 12px 12px;
  background: linear-gradient(125deg, #17254266, #1e355822), var(--entry-stars) 0 0 / 154px 116px, #182746 !important;
  min-height: 100vh;
  min-height: 100svh;
}
body.admin-entry {
  display: flex;
  flex-direction: column;
}
.admin-entry > header { flex: none; }
.admin-entry .gate {
  position: relative;
  flex: none;
  width: min(496px, calc(100% - 48px));
  max-width: none;
  margin: auto;
  /* The border stays clear of the header and viewport edges on short screens. */
  border: 2px solid var(--ink);
  border-top: 6px solid var(--lavender);
  outline: 2px solid var(--ink);
  outline-offset: -1px;
  padding: clamp(26px, 3.5vw, 42px);
  background: var(--entry-paper);
  box-shadow: 5px 5px 0 0 var(--lavender), 7px 7px 0 0 var(--ink);
  overflow-wrap: anywhere;
}
.admin-entry .gate::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  background: var(--pale) url("/admin/isvaizda/ikonos/prieigos.svg") center / 36px 36px no-repeat;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.admin-entry .gate::after {
  content: "";
  position: absolute;
  top: calc(clamp(26px, 3.5vw, 42px) + 27px);
  right: clamp(26px, 3.5vw, 42px);
  width: 55px;
  height: 12px;
  background: var(--entry-finish);
}
.admin-entry .gate h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.admin-entry .gate > p { color: #4b4760; margin-bottom: 14px; }
.admin-entry .gate form.entry { margin: 26px 0 0; gap: 16px; }
.admin-entry .gate .field { gap: 7px; font-size: 14px; }
.admin-entry .gate input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  color: var(--navy);
  background: #fff;
  border: 2px solid #837c99;
  border-radius: 4px;
  font: 500 18px/1.3 ui-monospace, monospace;
  letter-spacing: .05em;
}
.admin-entry .gate input:focus-visible { outline: 3px solid #7455c5; outline-offset: 2px; }
.admin-entry .gate form button.primary,
.admin-entry .gate > a.button {
  min-height: 48px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: normal;
  text-align: left;
}
.admin-entry .gate form button.primary::after,
.admin-entry .gate > a.button::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.admin-entry .gate form button.primary:hover,
.admin-entry .gate > a.button:hover { background: #ffea70; }
.admin-entry .gate form button.primary:active { transform: translate(2px,2px); box-shadow: 1px 1px var(--ink); }
.admin-entry .gate form + p { margin: 24px 0 0; }
.admin-entry .gate p:has(> a:only-child) > a { display: inline-flex; min-height: 44px; align-items: center; }
.admin-entry .gate p:has(> a:only-child) { margin-bottom: -8px; }
.admin-entry .gate .error { color: #70233a; }
.admin-entry .gate pre {
  padding: 14px 18px;
  margin: 16px 0 22px;
  background: #f0e9fa;
  border-left: 4px solid var(--purple);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-entry > header { margin-bottom: clamp(26px, 5vh, 56px); }
.admin-entry .gate { left: -2px; }
.admin-entry { padding-bottom: clamp(32px, 6vh, 66px); }
@media (max-width: 540px) {
  .admin-entry .gate { width: calc(100% - 40px); padding: 26px 22px; }
  .admin-entry .gate::after { top: 52px; right: 22px; }
  .admin-entry .gate::before { margin-bottom: 20px; }
  .admin-entry .gate form.entry { margin-top: 22px; }
}
@media (forced-colors: active) {
  .admin-entry .gate { border: 2px solid CanvasText; }
  .admin-entry .gate::before, .admin-entry .gate::after { display: none; }
}

.public-entry main.oxs-wrap {
  width: 100%;
  max-width: 1024px;
  padding: clamp(12px, 2vw, 22px) clamp(16px, 3vw, 36px) clamp(36px, 6vw, 76px);
}
.public-entry .pt-virsaus-juosta { margin-bottom: 12px; }
.public-entry .signin-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 3px solid #10172c;
  background: var(--entry-paper);
  box-shadow: 5px 5px 0 #ab9bcf, 8px 8px 0 #10172c;
}
.public-entry .signin-content {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  overflow-wrap: anywhere;
}
.public-entry .signin-content::before {
  content: "";
  display: block;
  width: 60px;
  height: 12px;
  margin-bottom: 19px;
  background: var(--entry-finish);
}
.public-entry .signin-content h1 {
  font-size: clamp(33px, 3.6vw, 51px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0 0 9px;
}
.public-entry .signin-content p { line-height: 1.48; }
.public-entry .signin-content > p { color: #4c495e; margin: 0 0 18px; }
.public-entry .pt-siauras { max-width: none; gap: 14px; }
.public-entry .pt-siauras > p { margin: 0; }
.public-entry .signin-content .pt-pastaba { font-size: 14px; }
.public-entry .signin-content .pt-arba { font-size: 14px; }
.public-entry .pt-arba::before, .public-entry .pt-arba::after { height: 1px; background: #9a91a5; }
.public-entry .oxf { display: grid; gap: 14px; margin: 0; }
.public-entry .oxf .row, .public-entry .oxf .row input { margin: 0; }
.public-entry .oxf .row input { background-color: white; }
.public-entry .oxf .pt-varnele { margin: 0; }
.public-entry .signin-content .ox-btn { min-height: 48px; padding: 8px 14px; white-space: normal; text-align: center; }
.public-entry .signin-content .pt-kitaip { background: #fffaf0; }
.public-entry .signin-content :is(a,summary,button,input):focus-visible { outline: 3px solid #6940bd; outline-offset: 3px; }
.public-entry .signin-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  border-left: 3px solid #10172c;
  background: var(--entry-stars) 10px 12px / 144px 108px, #191d4e;
}
.public-entry .signin-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #22154d url("/paveiksleliai/leja-zilitonas.webp") center 53% / 100% auto no-repeat;
}
.public-entry .signin-art::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  --corner: #dcd2ff;
  background:
    linear-gradient(var(--corner) 0 0) top left / 17px 3px,
    linear-gradient(var(--corner) 0 0) top left / 3px 17px,
    linear-gradient(var(--corner) 0 0) bottom right / 17px 3px,
    linear-gradient(var(--corner) 0 0) bottom right / 3px 17px;
  background-repeat: no-repeat;
}
@media (max-width: 720px) {
  .public-entry main.oxs-wrap { max-width: 560px; }
  .public-entry .signin-card { grid-template-columns: minmax(0, 1fr); }
  .public-entry .signin-content { padding: clamp(19px, 5vw, 30px); }
  .public-entry .signin-art {
    min-height: 0;
    aspect-ratio: 1.025;
    border-left: 0;
    border-top: 3px solid #10172c;
  }
}
@media (forced-colors: active) {
  .public-entry .signin-card { border: 2px solid CanvasText; }
  .public-entry .signin-content::before { display: none; }
}
