@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

#screen-login, #info-dialog {
  color-scheme:light;
  --ink:#203c37;
  --muted:#7c8881;
  --green:#173f36;
  --mint:#d1f1b1;
  --paper:#fafbf7;
  --line:#dfe5dd;
  font-family:'DM Sans',sans-serif;
  font-synthesis:none;
}
:where(#screen-login, #info-dialog) * {
  box-sizing:border-box;
}
#screen-login {
  margin:0;
  background:#e9ede5;
  color:var(--ink);
}
:where(#screen-login, #info-dialog) button, :where(#screen-login, #info-dialog) input, :where(#screen-login, #info-dialog) a {
  -webkit-tap-highlight-color:transparent;
}
:where(#screen-login, #info-dialog) button, :where(#screen-login, #info-dialog) input {
  font:inherit;
}
:where(#screen-login, #info-dialog) button, :where(#screen-login, #info-dialog) a {
  touch-action:manipulation;
}
:where(#screen-login, #info-dialog) button {
  cursor:pointer;
}
:where(#screen-login, #info-dialog) button:focus-visible, :where(#screen-login, #info-dialog) a:focus-visible, :where(#screen-login, #info-dialog) input:focus-visible {
  outline:3px solid #71a65c;
  outline-offset:4px;
}
:where(#screen-login, #info-dialog) button {
  color:inherit;
}
:where(#screen-login, #info-dialog) a {
  color:inherit;
  text-decoration:none;
}
#screen-login {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100svh;
  padding:16px;
  gap:16px;
}
:where(#screen-login, #info-dialog) .story {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:19px;
  background:#163f38;
  color:#f5f7ea;
  display:flex;
  flex-direction:column;
  padding:38px 8% 28px;
  min-height:820px;
}
:where(#screen-login, #info-dialog) .story:before {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(ellipse at 55% 77%,#456a4e88,transparent 50%),linear-gradient(125deg,#163e38,#133830 70%);
}
:where(#screen-login, #info-dialog) .brand {
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:9px;
  font-family:'Manrope',sans-serif;
  font-size:35px;
  line-height:1;
  font-weight:800;
  letter-spacing:-2px;
}
:where(#screen-login, #info-dialog) .brand-symbol {
  display:grid;
  place-items:center;
  width:34px;
  height:36px;
  background:var(--mint);
  color:#183f36;
  font-size:32px;
  border-radius:12px 5px 12px 5px;
  font-style:italic;
  line-height:1;
  padding-right:3px;
}
:where(#screen-login, #info-dialog) .brand-dot {
  font-size:11px;
  align-self:flex-start;
  margin-top:4px;
  letter-spacing:0;
}
:where(#screen-login, #info-dialog) .story-copy {
  margin-top:67px;
  z-index:2;
}
:where(#screen-login, #info-dialog) .eyebrow {
  font-size:9px;
  font-weight:600;
  letter-spacing:2px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#c6d9c7;
}
:where(#screen-login, #info-dialog) .eyebrow span {
  width:6px;
  height:6px;
  background:#c3e5a2;
  border-radius:50%;
  box-shadow:0 0 0 4px #bfe8a012;
}
:where(#screen-login, #info-dialog) h1 {
  font-family:'Manrope',sans-serif;
  font-size:clamp(38px,4.1vw,64px);
  font-weight:500;
  line-height:1.12;
  letter-spacing:-2.7px;
  margin:24px 0 20px;
}
:where(#screen-login, #info-dialog) h1 em {
  font-style:normal;
  color:#ceefaf;
}
:where(#screen-login, #info-dialog) .story-copy p {
  font-size:14px;
  line-height:1.85;
  color:#b3c5b9;
  margin:0;
}
:where(#screen-login, #info-dialog) .art {
  position:relative;
  flex:1;
  min-height:280px;
  margin-top:4px;
}
:where(#screen-login, #info-dialog) .orbit {
  position:absolute;
  border:1px solid #b6d59f19;
  border-radius:50%;
  width:460px;
  height:200px;
  left:50%;
  top:95px;
  transform:translateX(-50%) rotate(-20deg);
}
:where(#screen-login, #info-dialog) .orbit-two {
  width:390px;
  height:270px;
  top:55px;
  transform:translateX(-50%) rotate(24deg);
}
:where(#screen-login, #info-dialog) .sculpture {
  width:300px;
  height:280px;
  position:relative;
  margin:15px auto 0;
  transform:rotate(-9deg);
}
:where(#screen-login, #info-dialog) .arch {
  position:absolute;
  width:164px;
  height:238px;
  border-radius:90px 90px 17px 17px;
  border:43px solid transparent;
  bottom:15px;
  filter:drop-shadow(12px 19px 12px #001e2940);
}
:where(#screen-login, #info-dialog) .arch-back {
  left:111px;
  transform:rotate(25deg);
  background:linear-gradient(135deg,#e1f5b7 5%,#b0d385 40%,#718e57 75%,#b6d69a) border-box;
  mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
}
:where(#screen-login, #info-dialog) .arch-front {
  left:31px;
  transform:rotate(-8deg);
  background:linear-gradient(120deg,#f4f9d8 5%,#d5e8af 29%,#98b77b 67%,#718c5c) border-box;
  mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
}
:where(#screen-login, #info-dialog) .sphere {
  position:absolute;
  left:195px;
  top:192px;
  width:62px;
  height:62px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 24%,#f6efca,#b9bb90 45%,#607658 78%);
  box-shadow:12px 18px 18px #06271f80;
}
:where(#screen-login, #info-dialog) .pedestal {
  position:absolute;
  width:230px;
  height:35px;
  bottom:-4px;
  left:33px;
  background:#092b2477;
  filter:blur(18px);
  border-radius:50%;
  z-index:-1;
}
:where(#screen-login, #info-dialog) .floating-note {
  position:absolute;
  bottom:35px;
  left:3%;
  right:3%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border:1px solid #e5f1d32a;
  border-radius:14px;
  background:#d6e9d00f;
  backdrop-filter:blur(16px);
  box-shadow:0 18px 45px #06231d20;
  transform:rotate(-3deg);
  font-size:11px;
  line-height:1.8;
  color:#bfd2c1;
}
:where(#screen-login, #info-dialog) .floating-note strong {
  font-weight:500;
  color:#eef5e4;
  font-size:13px;
}
:where(#screen-login, #info-dialog) .spark {
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  border:1px solid #cadfc336;
  border-radius:50%;
  font-size:28px;
  color:#daf2bb;
}
:where(#screen-login, #info-dialog) .note-arrow {
  margin-left:auto;
  font-size:24px;
  color:#d7ecb7;
}
:where(#screen-login, #info-dialog) .art-index {
  position:absolute;
  bottom:0;
  left:0;
  font-size:8px;
  letter-spacing:2px;
  color:#8eac99;
}
:where(#screen-login, #info-dialog) .story-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#a0b8a7;
  font-size:10px;
  letter-spacing:.2px;
  margin-top:24px;
}
:where(#screen-login, #info-dialog) .tiny-mark {
  font-size:22px;
  color:#c8e5b6;
}
:where(#screen-login, #info-dialog) .access {
  display:flex;
  flex-direction:column;
  padding:24px 5% 17px;
  background:var(--paper);
  border-radius:19px;
}
:where(#screen-login, #info-dialog) .access-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}
:where(#screen-login, #info-dialog) .access-top>span {
  font-size:8px;
  letter-spacing:1.8px;
  color:#8b968b;
  font-weight:600;
}
:where(#screen-login, #info-dialog) .text-button {
  border:0;
  background:none;
  padding:4px 0;
  font-size:12px;
  font-weight:600;
  transition:color .2s;
}
:where(#screen-login, #info-dialog) .text-button:hover {
  color:#709b45;
}
:where(#screen-login, #info-dialog) .access-top .text-button {
  font-size:10px;
  color:#697c6d;
}
:where(#screen-login, #info-dialog) .access-top .text-button span {
  margin-left:5px;
}
:where(#screen-login, #info-dialog) .form-wrap {
  width:100%;
  max-width:365px;
  margin:auto;
   padding:50px 0 40px;
}
:where(#screen-login, #info-dialog) .welcome-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid #dce5d5;
  background:#f0f5e9;
  border-radius:14px;
  margin-bottom:29px;
}
:where(#screen-login, #info-dialog) .welcome-icon svg {
  width:24px;
  height:24px;
}
:where(#screen-login, #info-dialog) .small-label {
  font-size:9px;
  letter-spacing:1.7px;
  font-weight:650;
  color:#7d9079;
}
:where(#screen-login, #info-dialog) h2 {
  font-family:'Manrope',sans-serif;
  font-size:29px;
  line-height:1.25;
  letter-spacing:-1.1px;
  font-weight:650;
  margin:12px 0;
}
:where(#screen-login, #info-dialog) .intro {
  font-size:12px;
  line-height:1.7;
  color:#849083;
  margin:0 0 32px;
}
:where(#screen-login, #info-dialog) form>label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin:20px 0 9px;
}
:where(#screen-login, #info-dialog) .input-wrap {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:9px;
  height:53px;
  background:#fff;
  transition:border-color .2s,box-shadow .2s;
  padding:0 15px;
  gap:11px;
}
:where(#screen-login, #info-dialog) .input-wrap:focus-within {
  border-color:#91b278;
  box-shadow:0 0 0 3px #92b27b16;
}
:where(#screen-login, #info-dialog) .input-wrap svg {
  width:18px;
  height:18px;
  flex-shrink:0;
  fill:none;
  stroke:#92a18e;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
:where(#screen-login, #info-dialog) .input-wrap input {
  border:0;
  background:transparent;
  outline:0;
  min-width:0;
  width:100%;
  height:100%;
  font-size:12px;
  color:var(--ink);
}
:where(#screen-login, #info-dialog) .input-wrap input::placeholder {
  color:#a1aaa0;
}
:where(#screen-login, #info-dialog) .eye-button {
  background:none;
  border:0;
  display:grid;
  place-items:center;
  min-width:30px;
  height:40px;
  padding:0;
}
:where(#screen-login, #info-dialog) .eye-button[aria-pressed=true] svg {
  stroke:var(--green);
}
:where(#screen-login, #info-dialog) .form-options {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:17px 0 25px;
}
:where(#screen-login, #info-dialog) .remember {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#7f8b7c;
  cursor:pointer;
}
:where(#screen-login, #info-dialog) .remember input {
  width:14px;
  height:14px;
  accent-color:var(--green);
  margin:0;
}
:where(#screen-login, #info-dialog) .form-options .text-button {
  font-size:10px;
}
:where(#screen-login, #info-dialog) .submit-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  height:52px;
  border:0;
  border-radius:9px;
  background:var(--green);
  color:#eff6e9;
  padding:0 19px;
  font-weight:600;
  font-size:12px;
  box-shadow:0 4px 8px #163f3612;
  transition:background .2s,transform .2s;
}
:where(#screen-login, #info-dialog) .submit-button:hover {
  background:#285645;
  transform:translateY(-1px);
}
:where(#screen-login, #info-dialog) .submit-button span:last-child {
  font-size:22px;
  font-weight:400;
}
:where(#screen-login, #info-dialog) .status {
  font-size:12px;
  line-height:1.6;
  margin:12px 0 0;
  color:#526f47;
}
:where(#screen-login, #info-dialog) .status:empty {
  display:none;
}
:where(#screen-login, #info-dialog) .divider {
  display:flex;
  align-items:center;
  gap:14px;
  margin:31px 0 21px;
  font-size:8px;
  letter-spacing:1.5px;
  color:#9aa295;
}
:where(#screen-login, #info-dialog) .divider span {
  height:1px;
  background:#e3e7dd;
  flex:1;
}
:where(#screen-login, #info-dialog) .signup {
  text-align:center;
  font-size:11px;
  line-height:1.9;
  color:#899281;
  margin:0;
}
:where(#screen-login, #info-dialog) .signup button {
  margin-top:3px;
  font-size:12px;
}
:where(#screen-login, #info-dialog) .signup button span {
  margin-left:6px;
}
:where(#screen-login, #info-dialog) .environment {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:37px;
  font-size:9px;
  color:#9ca593;
}
:where(#screen-login, #info-dialog) .environment-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#94ad79;
}
:where(#screen-login, #info-dialog) .environment-separator {
  padding:0 5px;
  color:#c7cebf;
}
:where(#screen-login, #info-dialog) .access-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:9px;
  color:#9aa492;
  gap:12px;
}
:where(#screen-login, #info-dialog) .access-footer button {
  font-size:9px;
  font-weight:400;
  color:#8b9783;
}
#info-dialog {
  border:1px solid #dae3d4;
  border-radius:20px;
  padding:38px;
  width:min(440px,calc(100% - 32px));
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 24px 100px #0c2d3655;
}
#info-dialog::backdrop {
  background:#122c3866;
  backdrop-filter:blur(7px);
}
#info-dialog h2 {
  font-size:25px;
}
#info-dialog p {
  font-size:14px;
  line-height:1.8;
  color:#6c7c68;
}
#info-dialog .submit-button {
  margin-top:24px;
}
#close-dialog {
  position:absolute;
  right:14px;
  top:10px;
  border:0;
  background:none;
  font-size:28px;
  width:36px;
  height:36px;
}
:where(#screen-login, #info-dialog) .story-copy, :where(#screen-login, #info-dialog) .form-wrap {
  animation:arrive .7s ease-out both;
}
:where(#screen-login, #info-dialog) .form-wrap {
  animation-delay:.1s;
}
@keyframes arrive {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px) {
#screen-login {
  max-width:1600px;
  margin:auto;
}
:where(#screen-login, #info-dialog) .story {
  padding-left:12%;
  padding-right:12%;
}
}
@media(max-width:1000px) {
:where(#screen-login, #info-dialog) .story {
  padding-left:8%;
  padding-right:8%;
}
:where(#screen-login, #info-dialog) .access {
  padding-left:7%;
  padding-right:7%;
}
:where(#screen-login, #info-dialog) .access-top>span {
  display:none;
}
:where(#screen-login, #info-dialog) .access-top {
  justify-content:flex-end;
}
:where(#screen-login, #info-dialog) h1 {
  font-size:42px;
}
:where(#screen-login, #info-dialog) .eyebrow {
  font-size:7px;
  letter-spacing:1.3px;
}
:where(#screen-login, #info-dialog) h2 {
  font-size:26px;
}
}
@media(max-width:700px) {
#screen-login {
  display:block;
  padding:10px;
}
:where(#screen-login, #info-dialog) .story {
  min-height:0;
  padding:25px 28px 28px;
  border-radius:15px;
}
:where(#screen-login, #info-dialog) .brand {
  font-size:29px;
}
:where(#screen-login, #info-dialog) .brand-symbol {
  width:29px;
  height:31px;
  font-size:29px;
}
:where(#screen-login, #info-dialog) .story-copy {
  margin-top:30px;
}
:where(#screen-login, #info-dialog) .eyebrow {
  font-size:7px;
}
:where(#screen-login, #info-dialog) h1 {
  font-size:38px;
  letter-spacing:-1.7px;
  margin:17px 0 12px;
}
:where(#screen-login, #info-dialog) h1 br:nth-of-type(2) {
  display:none;
}
:where(#screen-login, #info-dialog) h1 em {
  display:block;
}
:where(#screen-login, #info-dialog) .story-copy p {
  font-size:12px;
}
:where(#screen-login, #info-dialog) .art {
  position:absolute;
  right:-50px;
  bottom:0;
  width:210px;
  min-height:220px;
  opacity:.28;
  z-index:-1;
  transform:scale(.8);
  transform-origin:bottom right;
}
:where(#screen-login, #info-dialog) .floating-note, :where(#screen-login, #info-dialog) .art-index, :where(#screen-login, #info-dialog) .story-footer {
  display:none;
}
:where(#screen-login, #info-dialog) .access {
  margin-top:10px;
  padding:22px 25px;
  border-radius:15px;
}
:where(#screen-login, #info-dialog) .access-top {
  justify-content:space-between;
}
:where(#screen-login, #info-dialog) .access-top>span {
  display:inline;
  font-size:7px;
  letter-spacing:1px;
}
:where(#screen-login, #info-dialog) .form-wrap {
  padding:32px 0 35px;
  max-width:400px;
}
:where(#screen-login, #info-dialog) .welcome-icon {
  margin-bottom:23px;
}
:where(#screen-login, #info-dialog) h2 {
  font-size:28px;
}
:where(#screen-login, #info-dialog) .intro {
  font-size:12px;
}
:where(#screen-login, #info-dialog) .form-options .text-button, :where(#screen-login, #info-dialog) .remember {
  font-size:10px;
}
:where(#screen-login, #info-dialog) .access-footer {
  font-size:8px;
}
:where(#screen-login, #info-dialog) .environment {
  margin-top:27px;
}
}
@media(prefers-reduced-motion:reduce) {
:where(#screen-login, #info-dialog) *, :where(#screen-login, #info-dialog) *:before, :where(#screen-login, #info-dialog) *:after {
  animation:none!important;
  transition:none!important;
}
}


/* Embedded layout: the dashboard keeps its fixed body; login scrolls independently. */
#screen-login {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overscroll-behavior-y: contain;
}
#screen-login > section { min-width: 0; }
#screen-login .story { min-height: 0; }
#screen-login .access { min-width: 0; }
#screen-login .form-wrap { min-width: 0; padding: 32px 0; }
#screen-login .input-wrap input { font-size: 16px; }
#screen-login .eye-button { min-width: 44px; min-height: 44px; }
#screen-login .text-button { min-height: 44px; }
#screen-login .form-options { flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 20px; }
#screen-login .remember { min-height: 44px; font-size: 12px; }
#screen-login .form-options .text-button { font-size: 12px; }
#screen-login .intro, #screen-login .status { overflow-wrap: anywhere; }
#screen-login .submit-button { min-height: 52px; height: auto; padding: 12px 19px; gap: 8px; }
#screen-login .submit-button span:last-child { flex-shrink: 0; }
#info-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; }
#info-dialog .text-button, #info-dialog button { min-height: 44px; }

@media (min-width: 901px) and (max-height: 850px) {
  #screen-login { padding: 12px; gap: 12px; }
  #screen-login .story { padding: 26px 7% 20px; }
  #screen-login .story-copy { margin-top: 28px; }
  #screen-login h1 { font-size: clamp(34px, 3.8vw, 52px); margin: 16px 0; }
  #screen-login .art { min-height: 225px; }
  #screen-login .sculpture { margin-top: -10px; transform: scale(.8) rotate(-9deg); transform-origin: top center; }
  #screen-login .floating-note { bottom: 26px; padding: 10px 16px; }
  #screen-login .access { padding-top: 12px; padding-bottom: 12px; }
  #screen-login .form-wrap { padding: 16px 0; }
  #screen-login .welcome-icon { margin-bottom: 14px; }
  #screen-login .intro { margin-bottom: 20px; }
  #screen-login .divider { margin: 20px 0 12px; }
  #screen-login .environment { margin-top: 16px; }
}

@media (max-width: 900px) {
  /* Keep grid in sync with mostrarLogin(), which sets display:grid on session changes. */
  #screen-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    padding: 12px;
    gap: 12px;
  }
  #screen-login .story { min-height: 0; padding: 20px 24px; border-radius: 15px; }
  #screen-login .brand { font-size: 29px; }
  #screen-login .brand-symbol { width: 29px; height: 31px; font-size: 29px; }
  #screen-login .story-copy { margin-top: 14px; }
  #screen-login .eyebrow, #screen-login .story-copy p,
  #screen-login .art, #screen-login .story-footer { display: none; }
  #screen-login h1 { font-size: clamp(23px, 4vw, 34px); letter-spacing: -1px; margin: 0; line-height: 1.2; }
  #screen-login h1 br { display: none; }
  #screen-login h1 em { display: inline; }
  #screen-login .access { margin: 0; padding: 12px clamp(16px, 5vw, 40px); border-radius: 15px; }
  #screen-login .access-top { justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
  #screen-login .access-top > span { display: inline; }
  #screen-login .form-wrap { max-width: 440px; padding: 20px 0; }
  #screen-login .welcome-icon { display: none; }
  #screen-login h2 { font-size: clamp(24px, 5vw, 29px); }
  #screen-login .intro { margin-bottom: 20px; }
  #screen-login .divider { margin: 20px 0 12px; }
  #screen-login .environment { margin-top: 16px; flex-wrap: wrap; }
  #screen-login .access-footer { flex-wrap: wrap; gap: 0 12px; }
}

@media (max-width: 380px), (max-width: 900px) and (max-height: 500px) {
  #screen-login { padding: 8px; gap: 8px; }
  #screen-login .story { padding: 14px 20px; }
  #screen-login .story-copy { display: none; }
  #screen-login .access-top > span { display: none; }
  #screen-login .access-top { justify-content: flex-end; }
  #screen-login .form-wrap { padding-top: 10px; }
}

/* Keep the complete form comfortable on common notebook heights. */
@media (min-width: 901px) {
  #screen-login .form-wrap { padding: 20px 0; }
  #screen-login .welcome-icon { margin-bottom: 18px; }
  #screen-login .divider { margin: 20px 0 12px; }
  #screen-login .environment { margin-top: 18px; }
}
@media (min-width: 901px) and (max-height: 850px) {
  #screen-login .form-wrap { padding: 8px 0; }
  #screen-login .welcome-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  #screen-login .intro { margin-bottom: 12px; }
  #screen-login form > label { margin-top: 12px; }
  #screen-login .form-options { margin-bottom: 12px; }
  #screen-login .divider { margin: 14px 0 8px; }
  #screen-login .environment { margin-top: 12px; }
}
