/* Login — alinhado ao tema JM Gestor */
html,
body {
  margin: 0;
  padding: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

.login-page * {
  box-sizing: border-box;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background-color: #0f172a;
  background-image: url('/assets/images/bg-masthead.jpg');
  background-size: cover;
  background-position: center;
  color: #f1f5f9;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 27, 75, 0.82) 45%, rgba(49, 46, 129, 0.78) 100%),
    radial-gradient(ellipse at 25% 15%, rgba(99, 102, 241, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2.5rem;
}

.login-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-logo-text strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-logo-text span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.login-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.login-hero h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #fff;
}

.login-lead {
  margin: 0 0 1.25rem;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.95rem;
}

.login-note {
  margin: 0 0 1.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

.login-site-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.15s;
}

.login-site-link:hover {
  color: #fff;
}

.login-tecnico-cta {
  margin-top: 3rem;
  padding: 1.65rem 1.55rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #1d4ed8 0%, #4338ca 48%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 20px 50px rgba(29, 78, 216, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-tecnico-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.login-tecnico-cta-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.login-tecnico-cta h3 {
  margin: 0 0 0.65rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
}

.login-tecnico-cta-text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.login-tecnico-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: #fff;
  color: #3730a3;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
  transition:
    transform 0.12s,
    box-shadow 0.15s,
    background 0.15s;
  position: relative;
  z-index: 1;
}

.login-tecnico-cta-btn:hover {
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  color: #312e81;
}

.login-tecnico-cta-btn:active {
  transform: scale(0.99);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f1f5f9;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}

.login-card-header {
  margin-bottom: 1.75rem;
}

.login-card-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.login-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.login-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.login-field input:hover {
  border-color: #cbd5e1;
}

.login-field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.login-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.1s;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.login-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.login-footer-legal {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-hero {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  .login-hero h2 {
    font-size: 1.35rem;
  }

  .login-tecnico-cta {
    margin-top: 2rem;
  }

  .login-site-link {
    margin-bottom: 0.25rem;
  }
}
