/* Approved certificate art direction, 2026-10-15. C21 behavior remains shared. */
#registration {
  position: absolute; inset: 0; z-index: 50; overflow: auto;
  background: rgba(5, 10, 21, .57); color: #293b56;
  --wqxt-input-text: #293b56; --wqxt-input-danger: #96394e;
}
#registration [data-certificate-layout] { position: absolute; box-sizing: border-box; }
#registration-content { isolation: isolate; }
.certificate-back {
  position: absolute; inset: -13px 28px 79px -22px; z-index: -1; overflow: hidden;
  transform: rotate(-7deg); border: 5px solid #c4ced2;
  background: repeating-linear-gradient(130deg, transparent 0 6px, #f0f7ee0b 6px 7px), linear-gradient(145deg,#687e86,#82958e 50%,#a6b9b0);
  box-shadow: 0 16px 36px #0005; color: #d2e1dd;
}
.certificate-back span { position: absolute; top: 17px; left: 20px; font: 9px/1.2 var(--mono); letter-spacing: .15em; }
.certificate-back b { position: absolute; bottom: 16px; right: 22px; font: 500 13px/1.4 var(--serif); letter-spacing: .3em; }
.certificate-back i { position: absolute; width: 270px; height: 270px; left: 35%; top: -45%; border: 1px solid #d7e7e54d; border-radius: 50%; box-shadow: 0 0 0 25px #d7e7e514,0 0 0 70px #d7e7e51a; }
#certificate {
  border: 0; border-radius: 6px;
  background: radial-gradient(ellipse at 4% 5%,#f2eaffb0,transparent 38%),radial-gradient(ellipse at 100% 100%,#c9c6efb0,transparent 45%),linear-gradient(110deg,#e3edf3,#f2f4f7 50%,#d9e4f0);
  box-shadow: 0 24px 64px #0006,inset 0 0 0 1px #eef4ff,inset 0 0 0 4px #ffffff42;
}
#certificate::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 12px; border-radius: 0 0 5px 5px; background: linear-gradient(90deg,#4e617b,#7b8ba0 42%,#a5a7c6 76%,#587a96); opacity: .8; pointer-events: none; }
.certificate-clip { position: absolute; z-index: 2; width: 23px; height: 50px; left: calc(50% - 11.5px); top: -36px; border: 1px solid #87949c; border-radius: 5px 5px 3px 3px; background: linear-gradient(90deg,#9ca4a9,#f8fcfb 27%,#e4e7e7 55%,#949da3); box-shadow: 0 2px 3px #101d4250; }
.certificate-clip::before { content: ''; position: absolute; top: 22px; left: 4px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle,#bac4c9 35%,#eef3f4 42%,#84949c 65%,#ced8dd 68%); }
.certificate-clip::after { content: ''; position: absolute; left: -22px; bottom: -6px; width: 65px; height: 7px; border-radius: 8px; background: #42525a; box-shadow: 0 1px #fff; }
#certificate-header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #8796b163; background: linear-gradient(100deg,#37425d,#506680); color: #f5f5fc; border-radius: 5px 5px 0 0; }
#certificate-header span { display: block; color: #d1dbe8; font: 8.5px/1.2 var(--mono); letter-spacing: .2em; }
#certificate-header h2 { margin: 5px 0 0; font: 600 20px/1.2 var(--serif); letter-spacing: .1em; }
#certificate-header em { position: static; color: #dbe5ef; font: normal 10px/1.2 var(--mono); white-space: nowrap; }
#certificate-emblem { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #a3b6c7; background: radial-gradient(ellipse at 50% 38%,#ebf8ff 0,#cedfea 55%,#b3c8d9); box-shadow: inset 0 0 0 4px #ecf4fa7d; }
#certificate-emblem svg { width: 112px; height: 112px; stroke: #7b94a7; stroke-width: .8; }
#certificate-emblem .emblem-star { fill: #e7f4fb; stroke: #54758e; stroke-width: 1.3; }
#certificate-emblem span { color: #385a74; font: 600 16px/1.4 var(--serif); letter-spacing: .25em; }
#certificate-emblem small { color: #506d83; font: 10px/1.5 var(--sans); letter-spacing: .15em; }
#certificate-fields { min-width: 0; }
#certificate-fields .certificate-facts { display: grid; gap: 8px; margin: 0 0 16px; border: 0; }
#certificate-fields .certificate-facts div { display: flex; gap: 12px; align-items: baseline; padding: 0; border: 0; }
#certificate-fields dt { color: #54657b; font: 11px/1.5 var(--sans); }
#certificate-fields dd { margin: 0 10px 0 0; color: #293b56; font: 600 14px/1.4 var(--serif); }
#certificate-fields dd:nth-of-type(2) { margin-right: 0; }
#certificate-fields label { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; color: #293b56; font: 600 14px/1.4 var(--serif); }
#certificate-fields #name-count { color: #576a80; font: 500 10px/1.2 var(--mono); }
#certificate-fields .name-row { display: block; }
#certificate-fields input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #a0b0c3; border-radius: 3px; background: #f7fbff8f; color: #233b57; font: 400 14px/1.4 var(--serif); box-shadow: inset 0 1px 4px #5a6c8a14; }
#certificate-fields input::placeholder { color: #65798e; }
#certificate-fields input:focus { outline: 2px solid #587c9d; outline-offset: 2px; }
#certificate-fields .name-error { min-height: 17px; margin: 4px 0 0; color: #96394e; font: 11px/1.5 var(--sans); }
#certificate-note { display: flex; align-items: flex-start; margin: 0; padding: 9px 24px 20px; border-top: 1px solid #8f9fb02e; color: #52657d; font: 11px/1.5 var(--sans); }
#certificate-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
#certificate-actions #sign-button { order: 1; min-width: 172px; height: 48px; border: 1px solid #d5e4f6b0; border-radius: 24px; background: radial-gradient(ellipse at 75% 130%,#a49dc270,transparent 65%),linear-gradient(120deg,#24415cdd,#303747e6); color: #fff; font: 600 14px/1 var(--serif); letter-spacing: .15em; box-shadow: inset 0 0 0 3px #ffffff13,0 4px 16px #0005; }
#certificate-actions #sign-button:hover { background-color: #455e79; }
#certificate-actions #sign-button:focus-visible,.certificate-info-button:focus-visible { outline: 2px solid #f4e1aa; outline-offset: 4px; }
.certificate-info-button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #e4ebf4; font: 600 14px/1 var(--serif); text-shadow: 0 1px 3px #000; }
.registration-info { box-sizing: border-box; width: min(520px,calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 20px 24px; border: 1px solid #b6c4d5; border-radius: 6px; background: #eaf0f6; color: #293b56; box-shadow: 0 16px 80px #0009; }
.registration-info::backdrop { background: #03091477; }
.registration-info header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.registration-info h3 { margin: 0; font: 600 18px/1.3 var(--serif); }
.registration-info header button { width: 44px; height: 44px; border: 0; color: #293b56; background: transparent; font-size: 26px; }
.registration-info ol { display: grid; gap: 12px; margin: 16px 0 4px; padding-left: 22px; font: 14px/1.7 var(--serif); }
@media (max-width:1000px),(max-height:560px) {
  #certificate-header { padding-inline: 16px; }
  #certificate::after { height: 6px; }
  #certificate-header span { font-size: 8.5px; }
  #certificate-header h2 { margin-top: 3px; font-size: 17px; }
  #certificate-emblem svg { width: 82px; height: 82px; }
  #certificate-emblem span { font-size: 15px; }
  #certificate-fields .certificate-facts { gap: 5px; margin-bottom: 8px; }
  #certificate-fields .certificate-facts div { gap: 8px; }
  #certificate-fields dt { font-size: 10px; }
  #certificate-fields dd { font-size: 13px; margin-right: 8px; }
  #certificate-fields label { font-size: 13px; }
  #certificate-fields input { height: 44px; font-size: 13px; }
  #certificate-fields .name-error { font-size: 10px; min-height: 15px; }
  #certificate-note { padding: 4px 16px 8px; font-size: 10px; }
  #certificate-actions { gap: 16px; }
  #certificate-actions #sign-button { height: 44px; min-width: 156px; font-size: 13px; }
  .certificate-info-button { font-size: 13px; }
  .certificate-clip { top: -28px; height: 41px; }
  .certificate-clip::before { top: 16px; }
  .certificate-back { inset: -8px 24px 65px -12px; border-width: 4px; }
  .registration-info { padding: 12px 20px; }
  .registration-info h3 { font-size: 16px; }
  .registration-info ol { font-size: 13px; }
}
