/* 4INLAB — login (matches assistant chat tokens) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: #050a12;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(249, 115, 22, 0.12), transparent 45%);
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 2rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(249, 115, 22, 0.06) inset;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.65rem;
  width: 100%;
  text-align: center;
}

.login-brand-logo {
  height: 52px;
  width: auto;
  max-width: min(240px, 75vw);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.login-greeting {
  margin: 0;
  width: 100%;
  text-align: center;
}

.login-greeting-line {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.login-greeting-line + .login-greeting-line {
  margin-top: 0.35rem;
}

.login-greeting-line--accent {
  font-size: 0.92rem;
  font-weight: 400;
  color: #f8fafc;
}

.login-greeting-strong {
  font-weight: 700;
}

@media (max-width: 380px) {
  .login-greeting-line {
    font-size: 0.88rem;
  }
  .login-greeting-line--accent {
    font-size: 0.85rem;
  }
}

.login-heading {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  text-align: center;
  width: 100%;
}

.login-field {
  margin-bottom: 1rem;
}

.login-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.login-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  background: rgba(7, 17, 31, 0.65);
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input::placeholder {
  color: #475569;
}

.login-field input:hover {
  border-color: rgba(100, 116, 139, 0.9);
}

.login-field input:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.login-error {
  display: none;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

.login-error.is-visible {
  display: block;
}

.login-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  box-shadow:
    0 4px 16px rgba(234, 88, 12, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow:
    0 6px 22px rgba(234, 88, 12, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .login-submit {
    transition: none;
  }
}
