﻿/* Layout del acceso; los controles usan el tema oficial STKERUI. */
body.stk {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 64px);
}
.login-tools {
  flex: none;
}
.login-tools .theme-control {
  margin: 0;
}
.login-layout {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px 20px 72px;
}
.login-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: var(--stk-shadow-overlay);
}
#formulario-acceso {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.login-form-heading {
  margin-bottom: 8px;
  text-align: center;
}
.login-form-heading h1 {
  margin: 0;
  color: var(--stk-heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.login-stack {
  width: 100%;
  max-width: 440px;
  display: grid;
  justify-items: center;
  gap: 32px;
}
.login-stack .login-brand {
  background: transparent;
  padding: 0;
  gap: 20px;
}
.login-brand .login-product-name {
  color: #61a531;
  font-family: "COUTURE-Bold", "Work Sans", sans-serif;
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  white-space: nowrap;
}
.login-brand img {
  width: 54px;
  height: 52px;
}
.login-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: var(--stk-bg);
}
.login-atmosphere::before,
.login-atmosphere::after {
  content: "";
  position: absolute;
  width: min(90vw, 1000px);
  height: min(90vw, 1000px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: login-drift 24s ease-in-out infinite alternate;
}
.login-atmosphere::before {
  top: -25%;
  left: -15%;
  background: radial-gradient(circle, var(--stk-brand), transparent 68%);
}
.login-atmosphere::after {
  right: -15%;
  bottom: -30%;
  background:
    radial-gradient(ellipse at 30% 30%, var(--stk-accent), transparent 55%),
    radial-gradient(ellipse at 70% 60%, var(--stk-nav), transparent 65%);
  animation-direction: alternate-reverse;
  animation-duration: 30s;
}
@keyframes login-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18vw, 10vh, 0) scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-atmosphere::before,
  .login-atmosphere::after {
    animation: none;
  }
}
[data-stk-motion="off"] .login-atmosphere::before,
[data-stk-motion="off"] .login-atmosphere::after {
  animation: none;
}
.login-field {
  min-width: 0;
}
.login-field > .stk-field {
  margin-bottom: 8px;
}
#entrar,
#formulario-acceso .operations-action-block > .MuiButton-root {
  width: 100%;
  min-height: var(--stk-control);
}
#e {
  margin: 0;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--stk-error);
  color: var(--stk-error);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#e:empty {
  display: none;
}
.login-panel .access-note {
  margin: 24px 0 0;
  color: var(--stk-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.login-provider {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.login-provider-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--stk-muted);
  font-size: 12px;
}
.login-provider-divider::before,
.login-provider-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stk-border);
}
.login-provider > .stk-button,
.login-provider .operations-action,
.login-provider .MuiButton-root {
  width: 100%;
}
.login-provider > .stk-button,
.login-provider .MuiButton-root {
  min-height: 48px;
  gap: 10px;
  white-space: normal;
}
.login-provider > .stk-button::before,
.login-provider .MuiButton-root::before {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: url("/assets/steker-account.svg") center / contain no-repeat;
}
@media (max-width: 540px) {
  .login-header {
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .login-brand {
    font-size: 21px;
  }
  .login-brand img {
    width: 40px;
    height: 40px;
  }
  .login-tools {
    margin-inline-start: auto;
  }
  .login-layout {
    padding: 24px 16px 48px;
  }
  .login-panel {
    padding: 28px 24px;
  }
}
