/* Login — agent command-floor aside + refined card */

.login-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { min-height: 420px; }
}

/* ---------- Aside: dark command floor ---------- */

.login-aside {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(56, 89, 134, 0.55), transparent 58%),
    radial-gradient(ellipse 45% 32% at 88% 18%, rgba(191, 158, 102, 0.14), transparent 55%),
    linear-gradient(178deg, #0f1a28 0%, #16273a 45%, #0d1725 100%);
  color: #f2f4f7;
  padding: 0;
  display: block;
}

.la-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.la-beams {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 210deg at 30% 20%, transparent 0deg, rgba(191, 158, 102, 0.06) 24deg, transparent 60deg),
    conic-gradient(from 30deg at 75% 70%, transparent 0deg, rgba(91, 159, 212, 0.05) 30deg, transparent 70deg);
  animation: laBeams 24s linear infinite;
}
@keyframes laBeams {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(6deg) scale(1.06); }
  to   { transform: rotate(0deg) scale(1); }
}

/* ---------- Aside atmosphere ---------- */

.la-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 65%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 65%, #000 15%, transparent 72%);
}

/* Agent network (logo concept 3) */
.la-network {
  position: absolute;
  right: -4%;
  bottom: 10%;
  width: min(460px, 72%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: laNetIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.la-net-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(15, 26, 40, 0.45));
}
.la-hub {
  filter: drop-shadow(0 0 16px rgba(126, 182, 232, 0.9));
  animation: laHubPulse 2.8s ease-in-out infinite;
}
@keyframes laHubPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(126, 182, 232, 0.7)); }
  50%      { filter: drop-shadow(0 0 22px rgba(126, 182, 232, 1)); }
}
.la-agent-node {
  opacity: 0;
  animation: laNodeFade 0.5s ease forwards;
}
@keyframes laNodeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes laNetIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 0.55; transform: translateY(0); }
}
@media (max-width: 900px) {
  .la-network { width: 70%; right: -8%; bottom: 2%; opacity: 0.55; }
}

/* Aside content */
.la-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.6rem 2.8rem 0;
}
@media (max-width: 900px) { .la-content { min-height: 420px; padding: 2rem 1.5rem 0; } }

.la-top {
  max-width: 32rem;
}

.la-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.la-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb3d9;
  opacity: 0;
  animation: laFadeUp 0.55s ease 0.35s forwards;
}
.la-spark {
  color: #7eb6e8;
  font-size: 0.85rem;
  filter: drop-shadow(0 0 6px rgba(126, 182, 232, 0.8));
}
.la-tag-logo {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 6px rgba(126, 182, 232, 0.7));
}

.login-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: laFadeUp 0.8s ease 0.1s forwards;
}
.la-top h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 2rem 0 0.9rem;
  opacity: 0;
  animation: laFadeUp 0.9s ease 0.3s forwards;
}
.la-top h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #e0c48a 0%, #bf9e66 55%, #e8d3a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.la-sub {
  color: rgba(242, 244, 247, 0.72);
  max-width: 30rem;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  opacity: 0;
  animation: laFadeUp 0.9s ease 0.5s forwards;
}

.la-statement {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid rgba(191, 158, 102, 0.7);
  color: #e0c48a;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  opacity: 0;
  animation: laFadeUp 0.65s ease 0.55s forwards;
}

.la-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 1.5rem;
  max-width: 32rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.la-pipe {
  flex: 0 0 auto;
  min-width: 3.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(126, 182, 232, 0.28);
  background: rgba(15, 26, 40, 0.55);
  text-align: center;
  opacity: 0;
  animation: laFadeUp 0.55s ease var(--d, 0.8s) forwards;
}
.la-pipe b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #e0c48a;
}
.la-pipe span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: rgba(242, 244, 247, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.la-pipe.on {
  border-color: rgba(191, 158, 102, 0.55);
  background: linear-gradient(160deg, rgba(191, 158, 102, 0.22), rgba(15, 26, 40, 0.55));
  box-shadow: 0 0 18px rgba(191, 158, 102, 0.2);
}
.la-pipe-line {
  flex: 1 1 12px;
  min-width: 10px;
  height: 1px;
  margin: 0 0.15rem;
  background: linear-gradient(90deg, rgba(126,182,232,0.15), rgba(224,196,138,0.55), rgba(126,182,232,0.15));
  position: relative;
  overflow: hidden;
}
.la-pipe-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: #e0c48a;
  animation: laPipePulse 2.4s ease-in-out infinite;
}
@keyframes laPipePulse {
  0%   { left: -30%; opacity: 0; }
  30%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes laFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.la-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 28rem;
}
.la-feats li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(191, 158, 102, 0.22);
  border-radius: 10px;
  background: rgba(13, 22, 35, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: laFadeUp 0.7s ease var(--d, 1s) forwards;
}
.la-feats small {
  margin-left: auto;
  font-weight: 500;
  color: rgba(242, 244, 247, 0.5);
  font-size: 0.74rem;
}
.la-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.la-dot.ok   { background: #3dba86; box-shadow: 0 0 8px rgba(61, 186, 134, 0.8); }
.la-dot.work { background: #5b9fd4; box-shadow: 0 0 8px rgba(91, 159, 212, 0.8); }
.la-dot.gold { background: #e0c48a; box-shadow: 0 0 8px rgba(224, 196, 138, 0.8); }

.la-bottom { padding-bottom: 1.6rem; }

/* SEO keyword ticker */
.la-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(191, 158, 102, 0.18);
  border-bottom: 1px solid rgba(191, 158, 102, 0.18);
  padding: 0.55rem 0;
  margin-bottom: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.la-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.9rem;
  white-space: nowrap;
  animation: laTicker 30s linear infinite;
}
.la-ticker-track span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(242, 244, 247, 0.65);
}
.la-ticker-track i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3dba86;
  margin-left: -1.2rem;
}
@keyframes laTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.la-foot {
  font-size: 0.8rem;
  color: rgba(242, 244, 247, 0.45);
  margin: 0;
}

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

/* ---------- Card side ---------- */

.login-main {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 85% 0%, rgba(191, 158, 102, 0.12), transparent 55%),
    radial-gradient(50% 40% at 0% 100%, rgba(56, 89, 134, 0.1), transparent 55%),
    linear-gradient(160deg, #fbfaf8 0%, #f4f2ee 100%);
}

.lm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.lm-orb-a {
  width: 340px;
  height: 340px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(224, 196, 138, 0.35), transparent 65%);
  animation: lmDrift 14s ease-in-out infinite;
}
.lm-orb-b {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(56, 89, 134, 0.22), transparent 65%);
  animation: lmDrift 18s ease-in-out -6s infinite reverse;
}
@keyframes lmDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, 20px) scale(1.08); }
}

.login-card {
  width: min(440px, 100%);
  background: linear-gradient(178deg, #ffffff 0%, #fdfcfa 100%);
  border-radius: 22px;
  box-shadow:
    0 30px 70px rgba(30, 51, 80, 0.16),
    0 3px 10px rgba(30, 51, 80, 0.06);
  padding: 2.4rem 2.2rem 2rem;
  animation: laFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
/* animated gradient ring (masked to border only) */
.login-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 24px;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(
    from var(--lc-angle, 0deg),
    rgba(191, 158, 102, 0.75),
    rgba(56, 89, 134, 0.3) 30%,
    rgba(191, 158, 102, 0.15) 55%,
    rgba(224, 196, 138, 0.85) 80%,
    rgba(191, 158, 102, 0.75)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: lcSpin 9s linear infinite;
}
@property --lc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes lcSpin {
  to { --lc-angle: 360deg; }
}

.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8874f;
  background: rgba(191, 158, 102, 0.12);
  border: 1px solid rgba(191, 158, 102, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.login-card h1 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #385986;
  letter-spacing: -0.02em;
}

/* Icon inputs */
.lc-input {
  position: relative;
  display: flex;
  align-items: center;
}
.lc-input svg {
  position: absolute;
  left: 0.9rem;
  color: #9aa7b8;
  pointer-events: none;
  transition: color 0.2s;
}
.lc-input:focus-within svg { color: #bf9e66; }
.lc-input input {
  width: 100%;
  padding: 0.8rem 0.95rem 0.8rem 2.55rem;
  border: 1px solid rgba(56, 89, 134, 0.18);
  border-radius: 11px;
  font: inherit;
  font-size: 0.95rem;
  background: rgba(248, 248, 248, 0.65);
  color: #000;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lc-input input::placeholder { color: #b6bfcb; }
.lc-input input:focus {
  outline: none;
  border-color: #bf9e66;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(191, 158, 102, 0.18);
}
.lc-field label { margin-bottom: 0.45rem; }

.lc-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.95rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.96rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #bf9e66, #d3b478 55%, #bf9e66);
  box-shadow: 0 12px 26px rgba(191, 158, 102, 0.38);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.lc-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(191, 158, 102, 0.5);
  transform: translateY(-1px);
}
.lc-submit svg { transition: transform 0.2s; }
.lc-submit:hover svg { transform: translateX(3px); }

.lc-submit-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: lcSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lcSheen {
  0%       { left: -60%; }
  55%, 100% { left: 130%; }
}

.lc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(56, 89, 134, 0.16);
  font-size: 0.78rem;
  color: #656565;
}
.lc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 600;
  color: #2a6b4e;
}
.lc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dba86;
  animation: lcBlink 2.2s ease infinite;
}
@keyframes lcBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 186, 134, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(61, 186, 134, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .la-beams, .la-ticker-track, .lc-live-dot,
  .login-logo, .la-top h2, .la-sub, .la-statement, .la-feats li, .la-pipe, .la-brand-tag,
  .login-card, .login-card::before, .lm-orb, .lc-submit-sheen,
  .la-network, .la-hub, .la-agent-node, .la-pipe-line::after {
    animation: none !important;
    opacity: 1;
  }
  .la-network { opacity: 0.92; }
}

/* Yoyime Clinic login theme — cream on ink (not Goodhand navy/gold) */
.login-logo-yoyime {
  height: 48px;
  width: auto;
  filter: none !important;
  opacity: 0;
  animation: laFadeUp 0.8s ease 0.1s forwards;
}
.login-yoyime .login-aside {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(234, 230, 202, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(90, 110, 100, 0.18), transparent 50%),
    linear-gradient(175deg, #0a0a0a 0%, #121412 48%, #0d1110 100%);
  color: #f5f0e8;
}
.login-yoyime .la-beams {
  background:
    conic-gradient(from 200deg at 28% 18%, transparent 0deg, rgba(234, 230, 202, 0.05) 22deg, transparent 55deg),
    conic-gradient(from 40deg at 78% 72%, transparent 0deg, rgba(120, 140, 130, 0.06) 28deg, transparent 65deg);
}
.login-yoyime .la-brand-tag {
  color: #c9bf9a;
  background: rgba(234, 230, 202, 0.06);
  border: 1px solid rgba(234, 230, 202, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
}
.login-yoyime .la-tag-logo {
  filter: drop-shadow(0 0 8px rgba(234, 230, 202, 0.35));
}
.login-yoyime .la-top h2 {
  color: #f8f4ea;
  font-family: "adobe-caslon-pro", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.login-yoyime .la-top h2 em {
  background: none;
  -webkit-text-fill-color: #eae6ca;
  color: #eae6ca;
  border-bottom: 1px solid rgba(234, 230, 202, 0.35);
  font-style: italic;
  font-weight: 600;
}
.login-yoyime .la-sub {
  color: rgba(245, 240, 232, 0.72);
}
.login-yoyime .la-statement {
  border-left-color: #eae6ca;
  color: #eae6ca;
}
.login-yoyime .la-pipe {
  border-color: rgba(234, 230, 202, 0.22);
  background: rgba(0, 0, 0, 0.35);
}
.login-yoyime .la-pipe.on {
  border-color: #eae6ca;
  box-shadow: 0 0 0 1px rgba(234, 230, 202, 0.25);
}
.login-yoyime .la-pipe b {
  color: #eae6ca;
}
.login-yoyime .la-pipe-line {
  background: rgba(234, 230, 202, 0.28);
}
.login-yoyime .la-dot.gold {
  background: #eae6ca;
}
.login-yoyime .la-feats li {
  background: rgba(234, 230, 202, 0.05);
  border-color: rgba(234, 230, 202, 0.12);
}
.login-yoyime .la-ticker {
  border-top-color: rgba(234, 230, 202, 0.12);
  color: rgba(234, 230, 202, 0.55);
}
.login-yoyime .la-foot {
  color: rgba(234, 230, 202, 0.45);
}
.login-yoyime .login-main {
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(234, 230, 202, 0.18), transparent 55%),
    linear-gradient(180deg, #f7f4ec 0%, #efe9dc 100%);
}
.login-yoyime .lm-orb-a {
  background: radial-gradient(circle, rgba(90, 110, 100, 0.2), transparent 70%);
}
.login-yoyime .lm-orb-b {
  background: radial-gradient(circle, rgba(234, 230, 202, 0.35), transparent 70%);
}
.login-yoyime .lc-badge {
  color: #3d4f48;
  background: rgba(61, 79, 72, 0.08);
}
.login-yoyime .login-card h1 {
  color: #1a1c1a;
  font-family: "adobe-caslon-pro", "Iowan Old Style", Palatino, Georgia, serif;
}
.login-yoyime .btn.gold.lc-submit,
.login-yoyime .lc-submit {
  background: linear-gradient(120deg, #1a1c1a, #2c322e 55%, #1a1c1a) !important;
  color: #eae6ca !important;
  border: 1px solid rgba(234, 230, 202, 0.35);
}
.login-yoyime .lc-input:focus-within {
  border-color: #3d4f48;
}
.login-yoyime .lc-input:focus-within svg {
  color: #3d4f48;
}
.login-yoyime .lc-live {
  color: #3d4f48;
}
.login-yoyime .lc-live-dot {
  background: #3d4f48;
}

/* Network graphic accents for Yoyime */
.login-yoyime .la-hub {
  filter: drop-shadow(0 0 14px rgba(234, 230, 202, 0.55));
}
.login-yoyime #hubGlow stop:first-child {
  stop-color: #eae6ca;
}
