@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

* { box-sizing: border-box; }

:root {
  --green: #079b48;
  --green-bright: #09c45c;
  --red: #e52620;
  --ink: #10251c;
  --muted: #718078;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0%, #f7faf8 48%, #edf5f0 100%);
}

/* Fondo */
.bg-grid {
  position: fixed;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(7,155,72,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,155,72,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.orb-red {
  top: -270px;
  left: -210px;
  background: radial-gradient(circle, rgba(229,38,32,.19), transparent 67%);
  animation: orbRed 9s ease-in-out infinite alternate;
}

.orb-green {
  right: -250px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(7,155,72,.18), transparent 68%);
  animation: orbGreen 11s ease-in-out infinite alternate;
}

/* Partículas */
.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
  opacity: .3;
  pointer-events: none;
  animation: particle 9s linear infinite;
}

/* Contenedor */
.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Tarjeta */
.login-card {
  width: min(100%, 455px);
  padding: 34px 42px 25px;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.93);
  box-shadow:
    0 35px 90px rgba(16,53,35,.14),
    0 5px 18px rgba(16,53,35,.06);
  backdrop-filter: blur(20px);
  animation: cardIn .75s cubic-bezier(.2,.8,.2,1) both;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--red));
  background-size: 200% 100%;
  animation: topFlow 3s linear infinite;
}

/* LOGO MANUAL */
.satux-logo {
  text-align: center;
  margin-bottom: 8px;
  animation: logoIn .8s .15s both;
}

.logo-mark {
  width: 122px;
  height: 83px;
  display: block;
  margin: 0 auto -24px;
  overflow: visible;
}

.wing {
  transform-origin: center;
}

.red-wing {
  animation: redWing 3.8s ease-in-out infinite;
}

.green-wing {
  animation: greenWing 3.8s ease-in-out infinite;
}

.wordmark {
  position: relative;
  z-index: 3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -3.4px;
  text-shadow: 0 5px 15px rgba(7,155,72,.08);
}

.wordmark .sat { color: var(--green); }
.wordmark .ux { color: var(--red); }

.brand-line {
  margin-top: 7px;
  font-size:14px;
  letter-spacing: 3px;
  font-weight: 800;
  color: #98a39d;
}

/* Cabecera */
.heading {
  text-align: center;
  margin: 20px 0 27px;
  animation: fadeUp .65s .25s both;
}

.overline {
  margin: 0 0 8px;
  color: var(--green);
  font-size:14px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.heading h1 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -.8px;
}

.heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size:14px;
}

/* Campos */
.field {
  margin-bottom: 15px;
  animation: fadeUp .65s both;
}

.field:nth-of-type(1) { animation-delay: .32s; }
.field:nth-of-type(2) { animation-delay: .39s; }

.field label {
  display: block;
  margin: 0 0 7px 2px;
  font-size:14px;
  font-weight: 800;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row a {
  color: var(--green);
  font-size:14px;
  font-weight: 700;
  text-decoration: none;
}

.label-row a:hover { text-decoration: underline; }

.input-box {
  height: 53px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid #e1e9e4;
  border-radius: 14px;
  background: #fff;
  position: relative;
  transition: .25s ease;
}

.input-box::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform: scaleX(0);
  transition: transform .3s ease;
}

.input-box:focus-within {
  transform: translateY(-1px);
  border-color: rgba(7,155,72,.55);
  box-shadow: 0 10px 28px rgba(7,155,72,.09);
}

.input-box:focus-within::after { transform: scaleX(1); }

.input-icon {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  width: 18px;
  text-align: center;
}

.lock { font-size:14px; }

.input-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 14px "Manrope", sans-serif;
  color: var(--ink);
}

.input-box input::placeholder { color: #aab4af; }

.show-password {
  border: 0;
  background: transparent;
  color: #7d8983;
  cursor: pointer;
  font-size:14px;
  padding: 5px;
}

.field small {
  display: block;
  min-height: 14px;
  margin: 4px 3px 0;
  color: var(--red);
  font-size:14px;
}

/* Checkbox */
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -1px 0 19px;
  color: #68756f;
  font-size:14px;
  cursor: pointer;
  animation: fadeUp .65s .46s both;
}

.remember input { display: none; }

.custom-check {
  width: 17px;
  height: 17px;
  border: 1.5px solid #d6e0da;
  border-radius: 5px;
  transition: .2s;
}

.remember input:checked + .custom-check {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(7,155,72,.25);
}

.remember input:checked + .custom-check::after {
  content: "✓";
  color: #fff;
  display: block;
  text-align: center;
  font-size:14px;
  line-height: 15px;
  font-weight: 800;
}

/* BOTÓN */
.login-button {
  width: 100%;
  height: 55px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(110deg, #067e3c, #08ad50, #08c45c, #067e3c);
  background-size: 300% 100%;
  box-shadow: 0 12px 28px rgba(7,155,72,.25);
  animation:
    fadeUp .65s .52s both,
    buttonGradient 4s linear infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 17px 36px rgba(7,155,72,.31),
    0 0 0 5px rgba(7,155,72,.06);
}

.login-button:active {
  transform: translateY(0) scale(.985);
}

.button-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.button-text {
  font: 800 14px "Manrope", sans-serif;
  letter-spacing: 1.7px;
}

.button-arrow {
  font-size: 21px;
  transition: transform .25s ease;
}

.login-button:hover .button-arrow {
  transform: translateX(7px);
}

/* Barrido de luz */
.shine {
  position: absolute;
  z-index: 1;
  width: 55px;
  height: 120px;
  top: -32px;
  left: -80px;
  transform: rotate(25deg);
  background: rgba(255,255,255,.28);
  filter: blur(4px);
  animation: shine 3.2s ease-in-out infinite;
}

/* Loader */
.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.login-button.loading .button-text,
.login-button.loading .button-arrow { display: none; }

.login-button.loading .button-loader { display: block; }

/* Separador y registro */
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 18px;
  color: #a2ada7;
  font-size:14px;
  font-weight: 800;
  animation: fadeUp .65s .58s both;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e8eeeb;
}

.register {
  text-align: center;
  color: var(--muted);
  font-size:14px;
  animation: fadeUp .65s .62s both;
}

.register a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}

.register a b {
  display: inline-block;
  transition: transform .2s;
}

.register a:hover b { transform: translateX(4px); }

/* Seguridad */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 21px;
  padding-top: 14px;
  border-top: 1px solid #edf1ef;
  color: #9aa59f;
  font-size:14px;
  animation: fadeUp .65s .67s both;
}

.secure-dot {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  border: 1px solid rgba(7,155,72,.25);
  font-size:14px;
}

/* Mensaje */
.message {
  display: none;
  padding: 10px;
  margin-top: 12px;
  border-radius: 10px;
  text-align: center;
  font-size:14px;
}

.message.show {
  display: block;
  animation: fadeUp .3s both;
}

.message.success {
  color: #087b3d;
  background: #eaf8ef;
}

.message.info {
  color: #9c2c27;
  background: #fff0ef;
}

/* Animaciones */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-14px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes redWing {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(-2deg) translateX(-2px); }
}

@keyframes greenWing {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(2deg) translateX(2px); }
}

@keyframes topFlow {
  to { background-position: 200% 0; }
}

@keyframes buttonGradient {
  to { background-position: 300% 0; }
}

@keyframes shine {
  0%, 25% { left: -90px; }
  65%, 100% { left: 115%; }
}

@keyframes orbRed {
  to { transform: translate(45px, 35px); }
}

@keyframes orbGreen {
  to { transform: translate(-40px, -35px); }
}

@keyframes particle {
  from { transform: translateY(20px); opacity: 0; }
  15% { opacity: .35; }
  85% { opacity: .2; }
  to { transform: translateY(-105vh); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  body { overflow: auto; }
  .screen { padding: 13px; }
  .login-card {
    padding: 29px 21px 22px;
    border-radius: 24px;
  }
  .wordmark { font-size: 38px; }
  .logo-mark { width: 110px; }
  .heading h1 { font-size: 23px; }
}

.admin-access-link{display:block;text-align:center;margin-top:12px;font-size:14px;color:#8b9791;font-weight:700;text-decoration:none;transition:.2s}.admin-access-link:hover{color:var(--green)}

/* Keep the login reachable on laptop screens, including with the cookie notice. */
body[data-page="login"] {
  overflow-x: hidden;
  overflow-y: auto;
}
body[data-page="login"] .screen {
  min-height: calc(100svh - 56px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 24px;
}
body[data-page="login"] .login-card {
  flex: none;
  padding: 16px 32px;
}
body[data-page="login"] .satux-logo {
  margin-bottom: 8px !important;
}
body[data-page="login"] .satux-logo > .satux-brand-image {
  width: 126px;
  height: 73px;
}
body[data-page="login"] .brand-line {
  margin-top: 2px;
  font-size: 12px;
}
body[data-page="login"] .heading { display: grid; gap: 6px; margin: 10px 0 16px; }
body[data-page="login"] .heading > * { margin: 0; line-height: 1.3; }
body[data-page="login"] .overline { font-size: 12px; }
body[data-page="login"] .field { margin-bottom: 12px; }
body[data-page="login"] .input-box { height: 48px; }
body[data-page="login"] .field small:empty { display: none; }
body[data-page="login"] .remember { margin: 4px 0 14px; }
body[data-page="login"] .login-button { height: 50px; }
body[data-page="login"] .separator { margin: 8px 0 6px; }
body[data-page="login"] .register { padding: 0; }
body[data-page="login"] .secure { margin-top: 10px; padding-top: 10px; }
body[data-page="login"] .admin-access-link { margin-top: 10px; }
body[data-page="login"] .support-hours {
  width: min(100%, 560px);
  margin: 0;
  text-align: center;
}
body[data-page="login"] .support-hours p { margin: 0 0 8px; }
/* A normal-flow notice cannot cover the form, including at high browser zoom. */
body[data-page="login"] .cookie-notice {
  position: relative;
  inset: auto;
  width: calc(100% - 32px);
  margin: 0 auto 16px;
}
@media (max-width: 520px) {
  body[data-page="login"] .screen { padding: 12px 16px 20px; }
  body[data-page="login"] .login-card { padding: 20px; }
  body[data-page="login"] .label-row { gap: 4px 12px; flex-wrap: wrap; }
  body[data-page="login"] .label-row a { margin-bottom: 7px; }
  body[data-page="login"] .secure { flex-wrap: wrap; text-align: center; }
}
