@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

body[data-path="login"] {
  --trias-blue: #2563eb;
  --trias-gradient: linear-gradient(135deg, #0284c7, #2563eb);
  --trias-glow: rgba(37, 99, 235, .18);
  --primary: var(--trias-blue);
  --primary-color: var(--trias-blue);
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fafc;
  font-family: Inter, sans-serif;
}

body[data-path="login"] .navbar,
body[data-path="login"] footer,
body[data-path="login"] .web-footer { display: none; }

body[data-path="login"] .page-content-wrapper,
body[data-path="login"] main.container { position: relative; z-index: 2; }

#trias-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

body[data-path="login"] .for-login .page-card,
body[data-path="login"] .for-forgot .page-card,
body[data-path="login"] .for-email-login .page-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 45px -12px rgba(15,23,42,.09), 0 0 0 1px rgba(226,232,240,.9);
  backdrop-filter: blur(18px);
  animation: trias-rise .7s cubic-bezier(.22,1,.36,1) both;
}

body[data-path="login"] .page-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 22px 22px 0 0;
  background: var(--trias-gradient);
}

body[data-path="login"] .page-card-head { text-align: left; }
body[data-path="login"] .page-card-head .app-logo {
  width: 48px;
  height: 48px;
  max-height: none;
  margin-bottom: .7rem;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(2,132,199,.25);
}
body[data-path="login"] .page-card-head h4 {
  color: #0f172a;
  font: 700 1.75rem/1.2 Outfit, sans-serif;
}
body[data-path="login"] .page-card-subtitle { color: #64748b; }
body[data-path="login"] .page-card .form-control {
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: rgba(248,250,252,.86);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
body[data-path="login"] .page-card .form-control:focus {
  border-color: var(--trias-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--trias-glow);
}
body[data-path="login"] .page-card .btn-login,
body[data-path="login"] .page-card .btn-login-with-email-link {
  height: 48px;
  border-radius: 12px;
  font: 600 1rem Outfit, sans-serif;
  transition: transform .2s, box-shadow .2s;
}
body[data-path="login"] .page-card .btn-login {
  border: 0;
  color: #fff;
  background: var(--trias-gradient);
  box-shadow: 0 8px 16px -2px var(--trias-glow);
}
body[data-path="login"] .page-card .btn.btn-login {
  border: 0 !important;
  color: #fff !important;
  background: var(--trias-gradient) !important;
}
body[data-path="login"] .page-card .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -2px rgba(37,99,235,.3);
}
body[data-path="login"] .page-card .btn-login-with-email-link {
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #f1f5f9;
}

#trias-hero {
  position: fixed;
  z-index: 1;
  inset: 0 50% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 4.5rem;
  color: #0f172a;
}
#trias-hero .trias-pill {
  align-self: flex-start;
  padding: .45rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
#trias-hero h1 {
  margin: 1.25rem 0 1rem;
  font: 800 clamp(2.2rem,4vw,3.6rem)/1.08 Outfit,sans-serif;
  letter-spacing: -.03em;
}
#trias-hero h1 em { font-style: normal; color: #2563eb; }
#trias-hero p { max-width: 30rem; color: #475569; font-size: 1.05rem; line-height: 1.6; }
#trias-hero .trias-prompt {
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 30rem;
  min-height: 3.2rem;
  margin-top: 2rem;
  padding: .95rem 1.1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 0 1px #e2e8f0, 0 12px 28px -12px rgba(37,99,235,.28);
  font-weight: 500;
}
#trias-hero .trias-spark { color: #2563eb; }

@media (min-width: 901px) {
  body[data-path="login"] .page-content-wrapper,
  body[data-path="login"] main.container { width: 100%; max-width: none; margin: 0; padding: 0; }
  body[data-path="login"] .for-login { display: flex; width: 50%; min-height: 100vh; margin-left: 50%; padding: 2rem; align-items: center; justify-content: center; }
}
@media (max-width: 900px) {
  #trias-hero { display: none; }
  body[data-path="login"] .for-login { display: flex; min-height: 100vh; padding: 1.5rem; align-items: center; justify-content: center; }
}
@keyframes trias-rise { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body[data-path="login"] * { animation: none !important; transition: none !important; } }
