/* Indicadores Visuais de Autenticação */

/* Status Badge */
.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.auth-status.online {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.auth-status.offline {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.auth-status::before {
  content: '';
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
  animation: pulse 2s infinite;
}

.auth-status.online::before {
  background: #27ae60;
}

.auth-status.offline::before {
  background: #c0392b;
}

/* User Info Cards */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--text-light);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Login Prompt */
.login-prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  color: var(--text-light);
  font-style: italic;
}

.login-prompt i {
  font-size: 1.2rem;
  color: var(--primary-blue);
}

/* Plan Status */
.plan-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  font-size: 0.9rem;
}

.plan-name {
  font-weight: 600;
  color: var(--text-dark);
}

.plan-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.plan-indicator.active {
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.4);
}

.plan-indicator.inactive {
  background: #95a5a6;
}

.plan-indicator.expired {
  background: #e74c3c;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
}

/* Floating Status Indicator */
.floating-auth-status {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.4s ease;
}

.floating-auth-status.online {
  border-left: 4px solid #2ecc71;
}

.floating-auth-status.offline {
  border-left: 4px solid #e74c3c;
}

.floating-auth-status .status-icon {
  font-size: 1.2rem;
}

.floating-auth-status.online .status-icon {
  color: #2ecc71;
}

.floating-auth-status.offline .status-icon {
  color: #e74c3c;
}

.floating-auth-status .status-text {
  font-weight: 600;
  color: var(--text-dark);
}

.floating-auth-status.online .status-text {
  color: #2ecc71;
}

.floating-auth-status.offline .status-text {
  color: #e74c3c;
}

/* Session Warning */
.session-warning {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f39c12;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  animation: slideUp 0.4s ease;
}

.session-warning .warning-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.session-warning .warning-text {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.session-warning .warning-timer {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Loading States */
.auth-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--medium-gray);
  border-top: 2px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-auth-status {
    top: 10px;
    right: 10px;
    padding: 0.5rem 0.75rem;
  }
  
  .user-info {
    padding: 0.75rem;
  }
  
  .auth-status {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .session-warning {
    left: 10px;
    right: 10px;
    transform: none;
    bottom: 10px;
  }
}
