:root {
  --login-radius: 28px;
}

body.login-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.18), transparent 55%),
              radial-gradient(circle at bottom, rgba(37, 99, 235, 0.15), transparent 45%),
              #f5f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  font-family: var(--font-family-sans, 'DM Sans', sans-serif);
  color: var(--text-primary, #0f172a);
}

.login-page {
  width: min(1100px, 100%);
  background: #ffffff;
  border-radius: var(--login-radius);
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.35);
  display: flex;
  overflow: hidden;
}

.login-card {
  flex: 1 1 520px;
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: linear-gradient(145deg, #ffffff 60%, #f8fbff);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}


.login-brand h1 {
  margin: 0;
  font-size: 2rem;
  color: #0f172a;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.35);
}

.login-brand p {
  margin: 0;
  color: #64748b;
  font-size: 0.98rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.form-brand-logo {
  width: 160px;
  height: auto;
}

.login-tabs {
  display: flex;
  gap: 12px;
  background: rgba(15, 23, 42, 0.06);
  padding: 6px;
  border-radius: 18px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.05);
}

.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-tab:hover {
  color: #0ea5e9;
}

.login-tab.active {
  background: #ffffff;
  color: #0ea5e9;
  box-shadow: 0 18px 30px -18px rgba(14, 165, 233, 0.6);
  transform: translateY(-1px);
}

.login-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-view.hidden {
  display: none !important;
}

.login-view.hidden {
  display: none !important;
}

.login-view label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.login-view input {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #d9e4ff;
  padding: 0 18px;
  font-size: 0.98rem;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.95));
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.password-toggle:hover {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
}

.password-toggle.is-active {
  color: #0ea5e9;
}

.password-toggle i {
  pointer-events: none;
}

.login-view input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.login-view input::placeholder {
  color: #94a3b8;
}

.login-form .btn {
  height: 52px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 600;
}

.login-form .btn i {
  font-size: 0.98rem;
}

.full-width {
  width: 100%;
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #d0d8ed;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 600;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
  border-color: #0ea5e9;
  box-shadow: 0 18px 40px -24px rgba(14, 165, 233, 0.75);
  transform: translateY(-1px);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

#loginError {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.login-footer a {
  color: #0ea5e9;
  font-weight: 600;
}

.login-hero {
  flex: 1 1 420px;
  background: linear-gradient(150deg, #0ea5e9 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.14), transparent 42%);
  opacity: 0.2;
}

.login-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  background: url('../images/branding/logo-mark.svg') no-repeat center/contain;
  opacity: 0.2;
  filter: drop-shadow(0 25px 45px rgba(15, 23, 42, 0.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #ffffff;
  max-width: 360px;
  transform: translateY(-40px);
}

.hero-content h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.35);
}

.hero-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.hero-list i {
  margin-top: 2px;
  color: #bbf7d0;
}
@media (max-width: 1024px) {
  body.login-body {
    padding: 32px 16px;
  }

  .login-page {
    flex-direction: column;
    border-radius: 24px;
  }

  .login-hero {
    order: -1;
    align-items: center;
    padding: 56px 48px;
  }

  .login-hero::before {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 48px 32px;
  }

  .login-hero {
    display: none;
  }
}

@media (max-width: 480px) {
  body.login-body {
    padding: 16px;
  }

  .login-card {
    padding: 40px 24px;
    gap: 28px;
  }

  .login-tabs {
    padding: 4px;
  }

  .login-tab {
    padding: 10px;
  }

  .invite-banner {
    padding: 14px;
  }

  .invite-banner-content strong {
    font-size: 14px;
  }

  .invite-banner-content p {
    font-size: 13px;
  }
}

/* Banner de Convite */
.invite-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
  margin: -12px 0 0 0;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invite-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-radius: 10px;
  color: white;
  font-size: 18px;
}

.invite-banner-content {
  flex: 1;
}

.invite-banner-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.invite-banner-content p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.invite-banner-content .invite-email {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 6px;
  color: #0369a1;
  font-weight: 500;
  font-size: 13px;
}

